华为网络实验(5)------单臂路由技术

实验目的:实现不同网段之间的通信。

拓扑图:

配置文件:

SW1配置
#
sysname sw1
#
vlan batch 10 20
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20


R1配置
#
interface GigabitEthernet0/0/0.1
 vlan-type dot1q 10 default
 ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/0.2
 vlan-type dot1q 20 default
 ip address 192.168.2.1 255.255.255.0

猜你喜欢

转载自blog.csdn.net/weixin_47403060/article/details/107590214
今日推荐