=head1 NAME B - add routes to connect the mn to the nodes via the service nodes. =head1 SYNOPSIS B [B<-r>|B<--routename> I[I<,r2...>]] B B<-d>|B<--delete> [B<-r>|B<--routenames> I[I<,r2...>]] B [B<-n>|B<--net> I] [B<-g>|B<--gateway> I] [B<-m>|B<--mask> I] B B<-d>|B<--delete> [B<-n>|B<--net> I] [B<-g>|B<--gateway> I] [B<-m>|B<--mask> I] B [B<-h> B<--help>|B<-v>|B<--version>] =head1 DESCRIPTION The B command adds routes to connect the mn to the nodes via the service nodes. It first reads the routing info from xCAT's B table and then adds the routes to the Kernel IP routing table for the os. It also gets all the gateways from the table. If a gateway is a service node, it sets b to 1 and then goes to the service node to enable the ipforwarding. =head1 OPTIONS =over 10 =item B<-d|--delete> Specifies to delete the given routes. If not specified, the action is to add routes. =item B<-r|--routename> Specifies a list of comma separated route names defined in the B table. If omitted, all routes defined in the B table will be used. =item B<-n|--net> Specifies the network address. =item B<-g|--gateway> Specifies the gateway that routes the ip traffic from the mn to the nodes. =item B<-m|--mask> Specified the network mask. =item B<-h|--help> Display usage message. =item B<-v|--version> Command Version. =back =head1 EXAMPLES =over 3 =item 1. To add all routes from the B table to the os route table: makeroutes =item 2. To add route rr1 and rr2 to the os route table. makeroutes -r rr1,rr2 =item 3. To delete route rr1 and rr2 from the os route table. makeroutes -d -r rr1,rr2 =item 4. To add a specific route to the os route table. makeroutes -n 10.0.1.0 The 10.0.1.0 netrwork must be defined in the xCAT's routes table. =back =head1 FILES /opt/xcat/sbin/makeroutes =head1 SEE ALSO