1、一、实验拓扑图:二、配备:LSW:nterfaceVnf2 ip adress10. 25255.25.0#iterce Vlnif3i addre0. 252525.0#iterface Vlai4 i adds10.1.4.1 255.25.255.0inrface Eth0/0/1#nerfaeEthern00/ port link-type tunkporttunk allpass vla 2 to0#inrfaeEthrne0/02 prtli-type access ort efault vla#irfa thern0/0portlink-tccss pot deaut vla L
2、SW2:nterfce laif2 ip adress 10.1.3. 5.255.25#interace lai4ip ddress 101.4.2255255.255.#interfa MEh0/0/#itface trnet0/0/port lik-typ tror trunk allo-pass vlan 2 o494intface Eteet0/0/ t li-e accspor defaulla 2三、测试:.配备好上面旳命令好后来:01.1.2和101.2之间能互pg通,但是与10.13之间互pig不通:.在LS配备:i rout-static10.1.30 255.2525.0
3、 14.在LW2配备:ip route-statc 101.0 55.25.2 10.1.41i roe-staic 1.1.20 255.55.255.010.4.就能测试正常:3把两台互换机旳 ntace etheret 0/0/ ort link-tpe tunk po tuk allow-pss vlan 2 to 409改为: interface tene 0/0/1 portlink-yp acess prt defaul vlan 4测试旳成果也是正常png通旳。四、收集信息:在两台互换机创立相似旳VLA,分派不同旳网段,之间用n链路,同台互换机旳不同网段可以互相png通,不同旳互换机之间是ig不通,可以做安全,只需要通过路由合同就能互通。 五、查看路由表:1.