俩个路由器桥接,
路由器1接lan口接外网,内网设192.168.20.1.;
路由器2lan口接路由器1的wan口,外网ip设为192.168.20.x(自动也可以),网关192.168.20.1,局域网ip设为192.168.10.x;
这样连个路由器是上下级连接,连接他们的主机不同网段都可以访问,相当于都在一个局域网
都说了 通过lan口连接 我的wan口还有他用呢
追答俩个路由器都连接lan口,这不行,
本回答被网友采纳我是这样设置的啊 但是无法互访
追答router1配置
interface FastEthernet0/0
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.30.0 255.255.255.0 192.168.20.2
!
router2配置
interface FastEthernet0/0
ip address 192.168.30.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.20.2 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.10.0 255.255.255.0 192.168.20.1
!