Chapter5ServiceConguration
CommandFunction
showipport[<0-63>](allcongurationmodes)Displaysipportlayer-3interface
conguration.
showiproute(allcongurationmodes)Displaysallroutinginformation.
showhardware-iproute(allcongurationmodes)Displayshardwarerouting
conguration.
IPv4Layer3CongurationInstance
lCongurationDescription
Setthelayer-3IPaddressto192.168.1.2ontheswitch.TheIPaddress192.168.1.2
canpingtheIPaddress192.168.1.1successfully.Bindvlan100with192.168.1.2.
Port1onswitchconnectswithPC.SeeFigure5-17.
Figure5-17Layer-3CongurationInstance
lCongurationProcedure
zte(cfg)#setvlan100enable
zte(cfg)#setvlan100addport1
zte(cfg)#setport1pvid100
zte(cfg)#configroute
zte(cfg-router)#setipport0ipaddress192.168.1.2255.255.255.0
zte(cfg-router)#setipport0vlan100
zte(cfg-router)#setipport0enable
lCongurationVerication
zte(cfg-router)#showipport
IpPortEn/DisableIpAddressMaskMacAddressVlanId
-----------------------------------------------------------------
0enabled192.168.1.2255.255.255.000.d0.d0.fa.29.20100
zte(cfg-router)#exit
Usethepingcommandtocheckwhetherthelayer-3portisavailable.
zte(cfg)#ping192.168.1.1
zte(cfg)#ping192.168.1.1
Replyfrom192.168.1.1:bytes=28time<1msTTL=64
Replyfrom192.168.1.1:bytes=28time<1msTTL=64
Replyfrom192.168.1.1:bytes=28time<1msTTL=64
Replyfrom192.168.1.1:bytes=28time<1msTTL=64
Replyfrom192.168.1.1:bytes=28time<1msTTL=64
5-67
SJ-20130731155059-002|2013-11-27(R1.0)ZTEProprietaryandCondential