cisco2950实现vlan的问题

来源:百度知道 编辑:UC知道 时间:2024/06/03 01:23:29
我现在有一台cisco2811路由器,接了一个2950G-24的交换机,然后下面又接了一个2950-24的交换机。请问我在最后面这个交换机上的一个端口如何做VLAN,想实现这个端口接出去的电脑和其他接入的电脑不在同一个网段,不能互访,但是能共享上网。全部电脑都是手动设置IP的。请高手给个明确的配置代码。包括路由器、交换机、电脑IP是如何设置等详细一些。非常着急,感谢感谢。

单臂路由

----------------------------------------------------------------------2811 的F0/1连2950 的F0/1,

路由器2811配置:
……
interface FastEthernet0/1
description To_NALDZXSW2950_F0/1
ip address 10.1.184.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1.2
encapsulation dot1Q 2
ip address 10.1.185.1 255.255.255.0
no snmp trap link-status
……
交换机2950配置:
……
interface FastEthernet0/1
switchport mode trunk ---------------------封装为:dot1Q
……
interface FastEthernet0/23
spanning-tree portfast
!
interface FastEthernet0/24
switchport access vlan 2
spanning-tree portfast

interface Vlan1
ip address 10.1.184.5 255.255.255.0
no ip route-cache
!

不能互访需要加访问列表。
……

你可以参考单臂路由的模型.

但单臂路由能实现VLAN间的路由的,要不能互访的话,你可以配置ACL列表应用到子接口上.

具体的配置参考下CCNA的教程吧.

同意楼上的,单臂路由。
在路由器