Skip to main content

7.5.5 Setting the routing


7.5.5 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. You can specify it as follows depending on the system configuration:
    - For SPARC M10-4S (no crossbar box): bb#00-lan#0, bb#00-lan#1, bb#01-lan#0, bb#01-lan#1

    - For SPARC M10-4S (with crossbar boxes): xbbox#80-lan#0, xbbox#80-lan#1, xbbox#81-lan#0, xbbox#81-lan#1
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
  1. The following example adds the default gateway IP address 192.169.1.1 for XSCF-LAN#1 of XBBOX#80.
XSCF> setroute -c add -n 0.0.0.0 -g 192.168.2.1 xbbox#80-lan#1