实验完成之后,在AR1的g0/0/1接口抓包,查看地址转换
实现私网pc访问公网pc
实验命令展示
SW1:
vlan batch 12 #创建vlan
interface e0/0/1 #进入接口配置vlan端口
port link-type access
port default vlan 12
q
interface e0/0/2 #进入接口配置vlan端口
port link-type access
port default vlan 12
q
interface e0/0/3
port link-type trunk
port trunk allow-pass vlan 12
q
SW2:
vlan batch 3
interface e0/0/1 #进入接口配置vlan端口
port link-type access
port default vlan 3
q
interface e0/0/2
port link-type trunk
port trunk allow-pass vlan 3
q
SW3:
vlan batch 12 34 35
interface g0/0/1
port link-type trunk
port trunk