13024235 2016528------------------------------------------------------------------ 2 ------------------------------------------------------------------------------------ 2 ------------------------------------------------------------------------------------ 2 ----------------------------------------------------------------------------- 2 ------------------------------------------------------------------------------------ 2 ------------------------------------------------------------------------------------ 2 ------------------------------------------------------------------------------------ 6VLAN --------------------------------------- 9 ------------------------------------------------------------------------------------ 9 ------------------------------------------------------------------------------------ 9 ------------------------------------------------------------------------------------ 9 ---------------------------------------------------------------------------------- 11 ---------------------------------------------------------------------------------- 23 VLAN ------------------------------------------------ 28 ---------------------------------------------------------------------------------- 28 ---------------------------------------------------------------------------------- 28 ---------------------------------------------------------------------------------- 28 ---------------------------------------------------------------------------------- 29 ---------------------------------------------------------------------------------- 29 ---------------------------------------------------------------------------------- 311DCRS-3926 dcrs-5526Console1. switch>enableswitch# //switch# configswitch(Config)# ////1IP//vlan IP2switch(Config)#interface vlan 1switch(Config-If-Vlan1)# //VLAN2. switch(Config-If-Vlan1)#ip address 192.168.1.10 255.255.255.0 //Ip3.//2ping//Window4. switch(Config)#telnet-server enableTelnetd already enabled. //telnet5switch(Config)#telnet-user jincong password 0 123456//telnet//076telnet37switch(Config)#ip http serverweb server is on //webswitch(Config)#web-user chen password 0 123//web8webWEB//3switch(Config)#interface vlan 1switch(Config)#vlan 1interface vlan 1//VLAN IP switch(Config)#interface vlan 1switch(Config-If-Vlan1)#?arp -- arpexit -- Exit Interface m odehelp -- helpinterface -- Select an interface to configureip -- Internet Protocol4no -- Negate a command or set its defaultshutdown -- Shutdown the selected interfacevlan -- Vlan Commandsvlan 1//VLANswitch(Config)#vlan 1switch(Config-Vlan1)#?exit -- Vlanhelp --interface --name -- Vlanno --private-vlan -- Vlanswitchport --vlan -- VLAN//4vlan vlanswitch(Config)#interface vlan 1switch(Config-If-Vlan1)# //vlan 1switch(Config)#vlan 2switch(Config-Vlan2)#interface vlan 2L3 interface table is fullinterface error!//vlan vlan IPswitch(Config)#no interface vlan 1 //vlan 1switch(Config)#interface vlan 200:23:12: %LINK-5-CHANGED: Interface Vlan2, changed state to UP switch(Config-If-Vlan2)#//5interface vlan 1switch(Config)#no interface vlan 2 //vlan 2switch(Config)#interface vlan 100:25:59: %LINK-5-CHANGED: Interface Vlan1, changed state to UP%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to UP51263745VLAN1234VLAN5VLANMAC""MAC.ROM:ROM ISO.RAM RAM IOS running-config.FLASH IOS.NVRAM startup-configNVRAMVlan(Virtual Local Area Network)VLANVLANVLAN VLANVLAN(VLAN)VLAN VLANVLAN VLANVLAN VLANVLAN1VLANVLAN2MAC VLANVLAN MAC MACVLANVLAN3VLAN3VLAN IP IPX4.VLANVLAN VLANMAC IP11consolePC console Windows WindowsCOM1 "9600""8""""1"""""""2TelnetTelnet consoleIP Telnetswitch#switch#configswitch(config)#interface vlan 1switch(config-vlan1)#ip address 192.168.10.3 255.255.255.0 switch(config-vlan1)#exitswitch(config)#telnet-server enableswitch(config)#telnet-user admin password 7 adminswitch(config)#PC3webIPIPswitch#configswitch(config)#ip http serverswitch(config)#web-user admin password 7 adminswitch(config)#Web2DCR IOS EXEC EXEC EXEX.EXEC EXECswitch>">".EXECswitch#"#"1switch>enableswitch#2switch#exitswitch>3."?"1"?"s1#?clear -- Clear logging in logbuff channelclock -- Manage the system clockconfig -- Enable Config modecopy -- Copy filedebug -- Debugging functionsdot1x -- Configure 802.1Xerase -- Erase last system failure info stored in flash exit -- Exit Privileged modehelp -- helplanguage -- Switch language mode (English, Chinese)2""s1#c?clear clock config copy3""s1#show ?aaa -- AAAaccess-group -- Specified access control for packets access-lists -- Display access-list structuream -- access managementarp -- ARP tablechannel -- Log ouput channelclass-map -- Display QoS Class Mapclock -- Display the system clock ..........................TABTABswitch#shswitch#showswitch#show run <TAB>s witch#show running-config.s witch#c> Ambiguous command!.show historys witch#show historyenshow historyconint e0/0/2041enableswitch>enableswitch#2config(con)switch#configswitch(config)#Ctrl+Zexitshow running-configwirte1switch#switch(config)#hostname testtest(config)#2s1(Config)#enable password level adminCurrent password:New password: ****** adminConfirm new password:****** adminS1(config)#3interface[type][layer/module/port]Type:ehternet,fasterthnet(100M) serial(),loopback()Layer:Module:Port:DCRS3926S ethernet0/0/5(00 5)1interfaceswitch(config)#interface ethernet0/0/5switch(config-if)#no shut ()shutdown no shutdown2IPip address ip-address subnet-maskswitch(config)#interface ethernet0/0/5switch(config-if)# ip address 192.168.10.1 255.255.255.0switch(config-if)#no shutdownIPIPVlan1,IPTelnet WebIPswitch#configswitch(config)#interface vlan 1switch(config-if-vlan)#ip address 192.168.0.1 255.255.255.0 switch(config)#PC IPVLANIEEE IEEE802.1Q VLANDCS-3926S VLAN 802.1Q VLAN1Vlan1vlanvlan <vlan-id>vlan ( vlan-id14096)no vlan <vlan-id>vlanvlan2switch(config)#vlan 2 vlan2switch(config-vlan2)#switch(config)# no vlan 2 vlan22name <vlan-name>no nametestswitch(config)#vlan 3switch(config-vlan3)#name test3switchport mode {access|trunk}access trunk.Trunk Trunk VLAN TrunkVLAN access mode Access Access VLANVLAN access10Trunk15access switch(config)#interface ethernet0/0/10switch(config-ethernet0/0/10)#switchport mode trunkswitch(config-ethernet0/0/10)#exitswitch(config)#interface ethernet0/0/15switch(config-ethernet0/0/15)#switchport mode accessswitch(config-ethernet0/0/15)#exit4vlanswitchport interface <interface-list>vlan,1vlan2151015 (accessswitch#configswitch(config)#vlan 2switch(config-vlan2)#switchport interface ethernet0/0/1;5;10-15switch(config-vlan2)#28vlan2switch#configswitch(config)#interface Ethernet0/0/8switch(config-ethernet0/0/8)#switchport mode accessswitch(config-ethernet0/0/8)#switchport access vlan 2switch(config-ethernet0/0/8)#5trunk vlanswitchport trunk allowed vlan {<vlan-list>|all}<vlan-list>Trunk VLAN allTrunk VLAN Trunk VLANVLAN Trunk VLANtrunk vlan10,vlan20,vlan30switch(config)#interface ethernet0/0/10switch(config-ethernet0/0/10)#switchport mode trunkswitch(config-ethernet0/0/10)#switchport trunk allowed vlan10;20;30switch(config-ethernet0/0/10)#23 VLAN VLAN10VLAN20 VLAN30VLANA B DCRS3926S VLANTrunk port Trunk link vlanVLAN VLAN20Trun VLAN10192.168.10.0VLAN20192.168.20.0VLAN30192.168.30.0VLAN20 A,B1015VLAN30 A,B16191s witch#con figswitch(config)#hostname s1s1(Config)#vlan 10s1(Config-Vlan10)#switchport interface ethernet 0/0/1-5 s1(Config-Vlan10)#exs1(Config)#vlan 20s1(Config-Vlan20)#switchport interface ethernet 0/0/10-15 s1(Config-Vlan20)#exs1(Config)#s1(Config)#interface ethernet 0/0/20s1(Config-Ethernet0/0/20)#switchport mode trunkSet the port Ethernet0/0/20 mode TRUNK successfullys1(Config-Ethernet0/0/20)#exits1(Config)#s1(Config)#vlan 30s1(Config-Vlan30)#switchport interface e0/0/16-19S1(Config-Vlan30)#exitS1(Config)#2s witch#con figswitch(config)#hostname s2s2(Config)#vlan 10s2(Config-Vlan10)#switchport interface e0/0/1-5s2(Config-Vlan10)#exits2(Config)#vlan 20s2(Config-Vlan20)#switchport interface e0/0/10-15s2(Config-Vlan20)#exits2(Config)#s2(Config)#interface ethernet 0/0/20s2(Config-Ethernet0/0/20)#switchport mode trunkSet the port Ethernet0/0/20 mode TRUNK successfullys2(Config-Ethernet0/0/20)#exs2(Config)#vlan 30s2(Config-Vlan30)#switchport interface e0/0/16-19s2(Config-Vlan30)#exitping VLAN ping VLAN Ping VLAN ping VLAN pingVLANVlan12VLAN1.VLAN2.trunk accesstrunk access1DCS-3926S22PC23Console//11A B VLAN: VLAN100VLAN200VLAN100PING VLAN100VLAN200PING2VLAN100PING1switch#set defaultswitch#writeswitch#reload2IPA switch(Config)#hostname switchAswitchA(Config)#interface vlan 1switchA(Config-If-Vlan1)#ip address 192.168.1.101 255.255.255.0 switchA(Config-If-Vlan1)#exitswitchA(Config)#Bswitch(Config)#hostname switchBswitchB(Config)#interface vlan 1switchB(Config-If-V lan1)#ip address 192.168.1.102 255.255.255.0switchB(Config-If-Vlan1)#exitswitchB(Config)#3VLAN100VLAN200switchA(Config)#vlan 100switchA(Config-Vlan100)#switchport interface ethernet 0/0/9-16Set the port Ethernet0/0/9 access vlan 100 successfullySet the port Ethernet0/0/10 access vlan 100 successfullySet the port Ethernet0/0/11 access vlan 100 successfullySet the port Ethernet0/0/12 access vlan 100 successfullySet the port Ethernet0/0/13 access vlan 100 successfullySet the port Ethernet0/0/14 access vlan 100 successfullySet the port Ethernet0/0/15 access vlan 100 successfullySet the port Ethernet0/0/16 access vlan 2 successfullyswitchA(Config-Vlan100)#exitswitchA(Config)#vlan 200switchA(Config-Vlan200)#switchport interface ethernet 0/0/17-22Set the port Ethernet0/0/17 access vlan 200 successfullySet the port Ethernet0/0/18 access vlan 200 successfullySet the port Ethernet0/0/19 access vlan 200 successfullySet the port Ethernet0/0/20 access vlan 200 successfullySet the port Ethernet0/0/21 access vlan 200 successfullySet the port Ethernet0/0/22 access vlan 200 successfully//1A PC1ping 192.168.1.101ping PC3B A//2B PC2ping 192.168.1.102ping PC44TrunkAswitchA(Config)#interface ethernet 0/0/24switchA(Config-Ethernet0/0/24)#switchport mode trunkSet the port Ethernet0/0/24 mode TRUNK successfullyswitchA(Config-Ethernet0/0/24)#B5PC1Ping PC2 A Ping B? PC3Ping PC4。