© 2011 Fujitsu Technology Solutions
14
Beginning in privileged EXEC mode, follow these steps to configure default gateway from
in-band management interface:
Command Purpose
Step 1 configure Enter global configuration mode.
Step 2 ip address protocol
<bootp|dhcp|none>
To set IP management interface to use
bootp, dhcp, or none.
Step 3 ip address <ipaddr> <netmask> To set a fixed IP address and net mask for
management interface.
Step 4 ip default-gateway <gateway> To set the default gateway address.
Step 5 exit Return to privileged EXEC mode.
Step 6 show ip redirects Verify the configuration.
To configure the default gateway for the in-band management interface, use ip
default-gateway global configuration command. To display IP setting of in-band
management interface, use show ip redirects privileged EXEC command.
In this example, in-band management interface is configured with a fixed IP address
192.168.2.1 and default gateway 192.168.2.254.
(BX900-CB1)#configure
(BX900-CB1)(Config)#ip address protocol none
Changing protocol mode will reset ip configuration.
Are you sure you want to continue? (y/n)y
(BX900-CB1)(Config)# ip address 192.168.2.1 255.255.255.0
(BX900-CB1)(Config)#ip default-gateway 192.168.2.254
(BX900-CB1)(Config)#exit
(BX900-CB1)#show ip redirects
ip default gateway 192.168.2.254
(BX900-CB1)#
!
The gateway of in-band and out-of-band (oob) management interface can’t be set
at the same time. If the gateway of oob has been set, you have to remove it before
you configure the gateway of in-band management interface.