cisco 2950vlan配置问题

来源:百度知道 编辑:UC知道 时间:2024/06/17 00:46:50
两个单位,要两个不能互相访问,但都能通过交换机上网。
交换机接路由器,
还有没有其他答案了,这好像不行吧

Router Fa0/0 link to Switch Fa0/24
For example:
Router:
int fa0/0.10
ip add 10.0.10.1 255.255.255.0
encapsulation dot1q 10 native
no sh
int fa0/0.20
ip add 10.0.20.1 255.255.255.0
encapsulation dot1q 20
no sh

Switch:
int vlan 1
shutdown

vlan dat
vlan 10 name Company_A
vlan 20 name Company_B
int vlan 10
ip add 10.0.10.2 255.255.255.0
no sh
int fa0/24
switchport mode trunk
switchport trunk encapsulation dot1q

最后在各个端口内用"switchport access vlan X"将该port划入相应的vlan.

万试万灵,不行你就在百度发消息说我不行吧!!

vlan database
vlan 10
vlan 20
int e0/1
switchport access vlan 10
int e0/2
switchpirt access vlan 20
int e0/24
switchport mode trunk
switchpirt trunk allwoed vlan all
switchpirt trunk encapsulation dot1q