争怎路由网:是一个主要分享无线路由器安装设置经验的网站,汇总WiFi常见问题的解决方法。

单臂路由器之间的通信(路由器之间做单臂路由)

时间:2024/11/23作者:未知来源:争怎路由网人气:

实验环境 win 10 ,ensp


实验步骤

步骤一:根据上面网络拓扑图新建,网络拓扑图之后启动设备。

步骤二:SW1配置

#

vlan batch 5 10

#

interface Ethernet0/0/1

port link-type trunk

port trunk allow-pass vlan 5 10 20 30

#

interface Ethernet0/0/2

port link-type access

port default vlan 5

#

interface Ethernet0/0/3

port link-type access

port default vlan 10

步骤三:SW2配置

#

vlan batch 20 30

#

interface Ethernet0/0/1

port link-type trunk

port trunk allow-pass vlan 5 10 20 30

#

interface Ethernet0/0/2

port link-type access

port default vlan 20

#

interface Ethernet0/0/3

port link-type access

port default vlan 30

#

interface Ethernet0/0/4

port link-type access

port default vlan 30

步骤四:R1配置

interface Ethernet0/0/0

ip address 10.1.1.1 255.255.255.0

#

interface Ethernet0/0/1.1

dot1q termination vid 5

ip address 192.168.5.254 255.255.255.0

arp broadcast enable

#

interface Ethernet0/0/1.2

dot1q termination vid 10

ip address 192.168.10.254 255.255.255.0

arp broadcast enable

#

ospf 1 router-id 1.1.1.1

area 0.0.0.0

network 10.1.1.0 0.0.0.255

network 192.168.5.0 0.0.0.255

network 192.168.10.0 0.0.0.255

步骤五:R2配置

#

interface Ethernet0/0/0

ip address 10.1.1.2 255.255.255.0

#

interface Ethernet0/0/1.1

dot1q termination vid 20

ip address 172.16.20.254 255.255.255.0

arp broadcast enable

#

interface Ethernet0/0/1.2

dot1q termination vid 30

ip address 172.16.30.254 255.255.255.0

arp broadcast enable

#

ospf 1 router-id 2.2.2.2

area 0.0.0.0

network 172.16.20.0 0.0.0.255

network 172.16.30.0 0.0.0.255

network 10.1.1.0 0.0.0.255

步骤六:PC1、PC2、PC3、PC4、PC5配置ip和网关





步骤七:PC1与PC3、PC4、PC5相通




关键词:单臂路由器之间的通信(路由器之间做单臂路由)




Copyright © 2012-2018 争怎路由网(http://www.zhengzen.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版