争怎路由网/路由器百科/内容

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

路由器百科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相通




……

相关阅读