Enterasys Networks XSR CLI Router User Manual


 
Other IP Commands
5-152 Configuring the Internet Protocol
Mode
Interfaceconfiguration: XSR(config-if<xx>)#
Examples
ThefollowingCIDRexam plesetsIPaddress192.168.1.1withamaskof/24oninterfaceF1.
XSR(config)# interface FastEthernet 1
XSR(config-if)# ip address 192.168.1.1/24
ThefollowingexamplesetstheIPaddress192.168.1.1onG2:
XSR(config)#interface gigabitethernet 2
XSR(config-if<F1>)#ip address 192.168.1.1 255.255.255.0
Intheexamplebelow,131.108.1.27istheprimaryaddressand192.31.7.17and192.31.8.17are
secondaryaddressesforF1:
XSR(config)#interface FastEthernet 1
XSR(config-if<F1>)#ip address 131.108.1.27 255.255.255.0
XSR(config-if<F1>)#ip add 192.31.7.17 255.255.255.0 secondary
XSR(config-if<F1>)#ip add 192.31.8.17 255.255.255.0 secondary
Thefollowingexampleconfigures1.1.1.1astheprimaryandotherIPaddressesassecondary
addressesforF1,removessecondaryIP4.4.4.1fromtheinterfacebyentering
no ip address
4.4.4.1 255.255.255.0 secondary
,andupdatestheprimaryIPaddressto9.9.9.1byentering
ip address 9.9.9.1 255.255.255.0.
XSR(config)#interface FastEthernet 1
XSR(config-if<F1>)#ip address 1.1.1.1 255.255.255.0
XSR(config-if<F1>)#ip address 2.2.2.1 255.255.255.0 secondary
XSR(config-if<F1>)#ip address 3.3.3.1 255.255.255.0 secondary
XSR(config-if<F1>)#ip address 4.4.4.1 255.255.255.0 secondary
XSR(config-if<F1>)#no shutdown
XSR(config)#interface FastEthernet 1
XSR(config-if<F1>)#no ip address 4.4.4.1 255.255.255.0 secondary
XSR(config)#interface FastEthernet 1
XSR(config-if<F1>)#ip address 9.9.9.1 255.255.255.0
ip default-network
Thiscommandspecifiescandidatesforthedefaultrouteandworksinconjunctionwiththeip
route
commandwhichcreatesstaticroutestothedefaultnetwork.Defaultroutesmustbe atleast
onehopawayandhaveanaturalmaskattributedtoit.
Syntax
ip default-network network-number
Syntax of the “no” Form
Thenoformofthiscommandremovestheroute:
no ip default-network network-number
network-number
Numberofthenetwork.