单臂路由的设置之子接口设置IP脱标签实例教程

单臂路由的设置之子接口设置IP脱标签实例教程,第1张

单臂路由的设置之子接口设置IP脱标签实例教程,第2张创建VLAN10 20,将PC分别加入到VLAN10 20[sw2]vlan batch 10 20[sw1]int e0/0/1[sw1-Ethernet0/0/1]port link-type access [sw1-Ethernet0/0/1]port default vlan 10[sw1-Ethernet0/0/1]int e 0/0/2[sw1-Ethernet0/0/2]port link-type access [sw1-Ethernet0/0/2]port default vlan 20[sw1-Ethernet0/0/2]int e0/0/3[sw1-Ethernet0/0/3]port link-type trunk [sw1-Ethernet0/0/3]port trunk allow-pass vlan 10 20

创建VLAN30 40,将PC分别加入到VLAN30 40[sw2]vlan batch 30 40[sw2]int e0/0/1[sw2-Ethernet0/0/1]port link-type access[sw2-Ethernet0/0/1]port default vlan 30[sw2-Ethernet0/0/1]int e0/0/2[sw2-Ethernet0/0/2]port link-type access [sw2-Ethernet0/0/2]port default vlan 40[sw2-Ethernet0/0/2]int e0/0/3[sw2-Ethernet0/0/3]port link-type trunk [sw2-Ethernet0/0/3]port trunk allow-pass vlan 30 40

R1上设置单臂路由(子接口设IP,去标签,ARP广播)[R1]int g0/0/0.1[R1-GigabitEthernet0/0/0.1]ip address 192.168.10.254 24[R1-GigabitEthernet0/0/0.1]dot1q termination vid 10[R1-GigabitEthernet0/0/0.1]arp broadcast enable [R1-GigabitEthernet0/0/0.1]int g0/0/0.2[R1-GigabitEthernet0/0/0.2]ip address 192.168.20.254 24[R1-GigabitEthernet0/0/0.2]dot1q termination vid 20[R1-GigabitEthernet0/0/0.2]arp broadcast enable 设置路由表

[R1]ip route-static 192.168.30.0 24 192.168.50.2[R1]ip route-static 192.168.40.0 24 192.168.50.2

R2上设置单臂路由(子接口设IP,去标签,ARP广播)[r2]int g0/0/0.2[r2-GigabitEthernet0/0/0.2]ip address 192.168.40.254 24[r2-GigabitEthernet0/0/0.2]dot1q termination vid 40[r2-GigabitEthernet0/0/0.2]arp broadcast enable

[r2]int g0/0/0.1[r2-GigabitEthernet0/0/0.1]ip address 192.168.30.254 24[r2-GigabitEthernet0/0/0.1]dot1q termination vid 40[r2-GigabitEthernet0/0/0.1]arp broadcast enable

[r2-GigabitEthernet0/0/0.2]int g0/0/1[r2-GigabitEthernet0/0/1]ip address 192.168.50.2 24

设置路由表[r2] ip route-static 192.168.10.0 24 192.168.50.1[r2]ip route-static 192.168.20.0 24 192.168.50.1效果验证单臂路由的设置之子接口设置IP脱标签实例教程,第3张单臂路由的设置之子接口设置IP脱标签实例教程,第4张单臂路由的设置之子接口设置IP脱标签实例教程,第5张单臂路由的设置之子接口设置IP脱标签实例教程,第6张

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/530557.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2019-08-14
下一篇 2019-08-14

发表评论

登录后才能评论

评论列表(0条)

保存