setnetwork(8)
EXAMPLES
218
SPARC Enterprise Mx000 Servers XSCF Reference Manual • Last Revised August 2009
After you set the network interface, if you disable that network interface and
■
execute the applynetwork(8) command, the setting data of IP address and
netmask will be stored in XSCF. When you enable the network interface, the
setting of IP address and netmask will be used.
In the following cases, the setnetwork(8) command results in an error:
■
When specified the same subnet in XSCF-LAN#0 and XSCF-LAN#1
■
When specified the same IP address as DSCP
■
When specified a subnet which overlaps with DSCP
■
When specified the overlapped subnets in ISN and in other network interface
■
When specified the -c or -r option and ISN together
■
In case you specified the IP address and the netmask to the interfaces other than
■
ISN and when the ISN is not configured, the following default value will be set:
xscf#0-if:
■
IP address: 192.168.1.1 Netmask: 255.255.255.0
xscf#1-if:
■
IP address: 192.168.1.2 Netmask: 255.255.255.0
The shownetwork(8) command can display current information on a network
■
interface configured for XSCF.
To reflect information on the specified network interface, execute the
■
applynetwork(8) command and reset XSCF.
Sets the IP address 192.168.10.10 and netmask 255.255.255.0 for XSCF-LAN#0
EXAMPLE 1
on XSCF unit 0.
setnetwork xscf#0-lan#0 -m 255.255.255.0 192.168.10.10
XSCF>
Sets the IP address 192.168.10.10 and netmask 255.255.255.0 for XSCF-LAN#0
EXAMPLE 2
on XSCF unit 0 in the M3000/M4000/M5000 server.
setnetwork lan#0 -m 255.255.255.0 192.168.10.10
XSCF>
Disables XSCF-LAN#1 on XSCF unit 0.
EXAMPLE 3
setnetwork xscf#0-lan#1 -c down
XSCF>
Sets the IP address 192.168.10.128 on ISN on the XSCF unit 0. By default,
EXAMPLE 4
255.255.255.0 is set for the netmask.
setnetwork xscf#0-if 192.168.10.128
XSCF>
Sets the IP address 192.168.11.10 and netmask 255.255.255.0 for XSCF-LAN#0
EXAMPLE 5