beautypg.com

Ip default-network – Enterasys Networks X-Pedition XSR CLI User Manual

Page 228

background image

Other IP Commands

5-152 Configuring the Internet Protocol

Mode

Interface configuration:

XSR(config-if<xx>)#

Examples

The following CIDR example sets IP address 192.168.1.1 with a mask of /24 on interface F1.

XSR(config)# interface FastEthernet 1
XSR(config-if)# ip address 192.168.1.1/24

The following example sets the IP address 192.168.1.1 on G2:

XSR(config)#interface gigabitethernet 2
XSR(config-if)#ip address 192.168.1.1 255.255.255.0

In the example below, 131.108.1.27 is the primary address and 192.31.7.17 and 192.31.8.17 are 
secondary addresses for F1:

XSR(config)#interface FastEthernet 1
XSR(config-if)#ip address 131.108.1.27 255.255.255.0
XSR(config-if)#ip add 192.31.7.17 255.255.255.0 secondary
XSR(config-if)#ip add 192.31.8.17 255.255.255.0 secondary

The following example configures 1.1.1.1 as the primary and other IP addresses as secondary 
addresses for F1, removes secondary IP 4.4.4.1 from the interface by entering 

no ip address

4.4.4.1 255.255.255.0 secondary

, and updates the primary IP address to 9.9.9.1 by entering

ip address 9.9.9.1 255.255.255.0.

XSR(config)#interface FastEthernet 1
XSR(config-if)#ip address 1.1.1.1 255.255.255.0
XSR(config-if)#ip address 2.2.2.1 255.255.255.0 secondary
XSR(config-if)#ip address 3.3.3.1 255.255.255.0 secondary
XSR(config-if)#ip address 4.4.4.1 255.255.255.0 secondary
XSR(config-if)#no shutdown

XSR(config)#interface FastEthernet 1
XSR(config-if)#no ip address 4.4.4.1 255.255.255.0 secondary

XSR(config)#interface FastEthernet 1
XSR(config-if)#ip address 9.9.9.1 255.255.255.0

ip default-network

This command specifies candidates for the default route and works in conjunction with the 

ip

route

command which creates static routes to the default network. Default routes must be at least 

one hop away and have a natural mask attributed to it.

Syntax

ip default-network network-number

Syntax of the “no” Form

The no form of this command removes the route:

no ip default-network network-number

network-number

Number of the network.