非单臂vlan之间的路由

来源:百度知道 编辑:UC知道 时间:2024/09/28 09:07:33
我很愚, 只知单臂vlan路由, 非单臂却搞不通。。。。
拓扑图是两个路由器当pc, 并且处在各自的vlan中, 交换机的f0/0和f0/3 接口分别与路由器的e0/0和e/1接口相连

那么路由器和交换机上面应该怎么配置呢?? 我的部分配置是
pc1 ip add 10.1.1.2 255.255.255.0
no sh
pc2 ip add 10.2.2.2 255.255.255.0
no sh

router int e0/0
ip add 10.1.1.1 255.255.255.0
no sh
int e0/1
ip add 10.2.2.1 255.255.255.0
no sh
switchport int f0/1
sw mode acc
sw acc vlan 2
no sh
int f0/2
sw mode acc
sw acc vlan 3
pc1和pc2ping 路由器都不通。。。。。。

你什么都没配当然ping不通了,要么再加路由启子接口做单臂,要么把你那交换机还成三层交换,ip routing启用路由功能,再为各个vlan配置ip地址,将客户端网关指向自己vlan上的ip,完成!!!!!!!!!!!!!!!