实验二 单臂路由

配置图如下:

在原先的基础上,增加多的交换机上创建vlan10 20,把接口1和2和48配置为trunk模式。之后再路由器命名为R1,在R1上进入子接口,然后配置ip地址和掩码。最后在主机上配置网关

交换机代码:

vlan 10
vlan 20
interface range gi 1/0/1 to gi 1/0/2
port link-type trunk
port trunk permit vlan 10 20
interface gi 1/0/48
port link-type trunk
port trunk permit vlan 10 20

R1代码:

sys
sysname R1
intercace gi 0/0.10
vlan-type dot1q vid 10
ip address 192.168.10.254 24

猜你喜欢

转载自www.cnblogs.com/lintingting1/p/10831286.html
今日推荐