VLAN 间路由. vlan 10 vlan 20 vlan 30 VLAN 间路由 vlan 10 vlan 20 vlan 30

Download VLAN 间路由. vlan 10 vlan 20 vlan 30 VLAN 间路由 vlan 10 vlan 20 vlan 30

Post on 04-Jan-2016

228 views

Category:

Documents

5 download

Embed Size (px)

TRANSCRIPT

<p>VLAN1VLAN</p> <p>vlan 10vlan 20vlan 302VLAN</p> <p>vlan 10vlan 20vlan 30</p> <p>3VLAN</p> <p>vlan 10</p> <p>vlan 20</p> <p>vlan 304VLAN</p> <p>vlan 10</p> <p>vlan 20</p> <p>vlan 30FastEthernet 1/1.1 1/1.2 1/1.35 L3vlanvlan6 </p> <p> PC1 PC2VLANVLAN 100192.168.1.0/24VLAN 200192.168.2.0/24VLAN 100192.168.1.1VLAN 200192.168.2.17VLANVLAN100:e0/0/1-5Switch(Config)#vlan 100Switch(Config-Vlan100)#switchport interface ethernet 0/0/1-5VLAN200:e0/0/6-10Switch(Config)#vlan 200Switch(Config-Vlan200)#switchport interface ethernet 0/0/6-10VLANIPSwitch(Config)#interface vlan 100Switch(Config-If-Vlan100)#ip address 192.168.1.1 255.255.255.0Switch(Config)#interface vlan 200Switch(Config-If-Vlan200)#ip address 192.168.2.1 255.255.255.0VLAN100VLAN100192.168.1.1VLAN200VLAN200192.168.2.1VLAN100ping VLAN200VLAN8</p> <p>VLAN100Switch0/0/1Switch -1Switch -25000/0/10/0/10/0/22003001002004009VLAN10Switch-1hostname Switch-1vlan 100switchport interface ethernet 0/0/16-20vlan 200switchport interface ethernet 0/0/6-10vlan 300switchport interface ethernet 0/0/11-15interface ethernet 0/0/1switchport mode trunkswitchport trunk allowed vlan 100;200;30011Switch-2hostname Switch-2vlan 100switchport interface ethernet 0/0/16-20vlan 200switchport interface ethernet 0/0/6-10vlan 400switchport interface ethernet 0/0/11-15interface ethernet 0/0/1switchport mode trunkswitchport trunk allowed vlan 100;200;40012Switch vlan 100vlan 200vlan 300vlan 400vlan 500switchport interface ethernet 0/0/11-15interface ethernet 0/0/1switchport mode trunkswitchport trunk allowed vlan 100;200;300interface ethernet 0/0/2switchport mode trunkswitchport trunk allowed vlan 100;200;40013Switch interface vlan 100ip address 192.168.10.1 255.255.255.0interface vlan 200ip address 192.168.20.1 255.255.255.0interface vlan 300ip address 192.168.30.1 255.255.255.0interface vlan 400ip address 192.168.40.1 255.255.255.0interface vlan 500ip address 192.168.50.1 255.255.255.014show vlanshow ip route15</p> <p> 100Switch0/0/1-2Switch-1Switch-25000/0/1-20/0/1-20/0/3-420030010020040016Switch-1hostname Switch-1interface ethernet 0/0/1-2port-group 1 mode onvlan 100switchport interface ethernet 0/0/16-20vlan 200switchport interface ethernet 0/0/6-10vlan 300switchport interface ethernet 0/0/11-15interface port-channel 1switchport mode trunkswitchport trunk allowed vlan 100;200;30017Switch-2hostname Switch-2interface ethernet 0/0/1-2port-group 2 mode onvlan 100switchport interface ethernet 0/0/16-20vlan 200switchport interface ethernet 0/0/6-10vlan 400switchport interface ethernet 0/0/11-15interface port-channel 2switchport mode trunkswitchport trunk allowed vlan 100;200;40018Switch interface ethernet 0/0/1-2port-group 1 mode oninterface ethernet 0/0/3-4port-group 2 mode onvlan 100vlan 200vlan 300vlan 400vlan 500switchport interface ethernet 0/0/11-15interface port-channel 1switchport mode trunkswitchport trunk allowed vlan 100;200;300interface port-channel 2switchport mode trunkswitchport trunk allowed vlan 100;200;40019Switch interface vlan 100ip address 192.168.10.1 255.255.255.0interface vlan 200ip address 192.168.20.1 255.255.255.0interface vlan 300ip address 192.168.30.1 255.255.255.0interface vlan 400ip address 192.168.40.1 255.255.255.0interface vlan 500ip address 192.168.50.1 255.255.255.020show vlanshow ip route21</p>