Skip to main content

6.5.3 Setting the Routing


6.5.3 Setting the Routing
  1. Execute the showroute command to display the routing environment.
XSCF> showroute -a
Destination Gateway Netmask Flags Interface

Destination Gateway Netmask Interface
  1. Execute the setroute command to set the default gateway.
    For -n address, specify the IP address that is the routing information destination. If 0.0.0.0 is specified in address, the command sets the default routing information.
    For -g address, specify the gateway address used in routing.
    For interface, specify the network interface to be set. Either bb#00-lan#0 or bb#00-lan#1 can be specified for the SPARC M12-2.
XSCF> setroute -c add -n address -g address interface
  1. The following example adds the default gateway IP address 192.168.1.1 for XSCF-LAN#0 of BB#00.
XSCF> setroute -c add -n 0.0.0.0 -g 192.168.1.1 bb#00-lan#0