您的位置:首页 > 其它

cisco 命令 路由 是实现 不同的 vlan 通信

2010-07-08 16:47 856 查看
R1:
interface FastEthernet0/0
no ip address
duplex full
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.11
encapsulation dot1Q 11
ip address 192.168.11.1 255.255.255.0
!
--------------------

R3:
!
interface FastEthernet0/0
ip address 192.168.10.2 255.255.255.0
duplex full
!
ip default-gateway 192.168.10.1

---------------

R4:
interface FastEthernet0/0
ip address 192.168.11.2 255.255.255.0
duplex full
!
ip default-gateway 192.168.11.1

------------------

S1:
!
interface FastEthernet0/0
switchport trunk allowed vlan 1,10,11,1002-1005
switchport mode trunk
!
interface FastEthernet0/1
switchport access vlan 10
!
interface FastEthernet0/2
switchport access vlan 11

interface Vlan1
ip address 192.168.1.2 255.255.255.0
no ip route-cache
!
interface Vlan10
no ip address
no ip route-cache
!
interface Vlan11
no ip address
no ip route-cache

------------------

S1 MAC address table

switch-1#show mac-address-table
Destination Address Address Type VLAN Destination Port
------------------- ------------ ---- --------------------
cc00.0f44.0000 Self 1 Vlan1
cc00.0f44.0000 Self 10 Vlan10
cc00.0f44.0000 Self 11 Vlan11
ca00.0f94.0000 Dynamic 10 FastEthernet0/1
ca00.1778.0000 Dynamic 1 FastEthernet0/0
ca00.1350.0000 Dynamic 11 FastEthernet0/2
ca00.1778.0000 Dynamic 11 FastEthernet0/0





也可以参考
http://wenku.baidu.com/view/54e2bbf67c1cfad6195fa70f.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: