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
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
相关文章推荐
- 单臂路由和三层交换机实现不同VLAN通信
- cisco2801和cisco2960交换机实现双adsl接入及划分vlan,vlan通过不同的adsl上网,策略路由实现vlan之间的通信
- 在一台三层交换上,通过配置dhcp和路由实现不同VLAN相互通信
- 使用路由器实现不同VLAN间通信_路由交换
- 独臂路由实现不同vlan之间的通信
- 利用三层交换机实现不同VLAN间通信
- 不同vlan间实现通信
- CISCO 不同VLAN之间相互通信的两种方式
- 不同vlan间配置DHCP实现通信
- 网络设备配置与管理---VLAN间路由实现部门间通信
- 三层交换实现不同VLAN之间的通信
- 三层交换配路由不同(VLAN)6台PC之间通信(华为)
- 华为三层交换机实现不同vlan间通信
- 利用多层交换机实现不同VLAN之间的通信
- 三层交换实现不同VLAN间的通信[神州数码设备]
- 交换机实现不同VLAN的通信
- 思科模拟器配置DHCP,并实现不同Vlan之间的通信
- 利用三层交换机实现不同vlan间通信
- 单臂路由实现不同vlan间的通信
- 华为eNSP浮动路由实现不同vlan之间的通信