HCIP-Datacom之VLAN间路由==单臂路由、vlanIF(SVI)

VLAN间路由:通过三层设备路由,使得不同vlan间可以互相通信。但是仅仅允许单播通信。

 

VLAN间路由方式:

① 单臂路由 (路由器逻辑子接口),根据路由表转换VLAN标签;

② SVI(交换机的Switch Virtual Interface)或vlanIF

 

//单臂路由--创建2个子接口
interface Ethernet0/0/0.1
dot1q termination vid 10
ip address 192.168.10.1 255.255.255.0
arp broadcast enable

interface Ethernet0/0/0.2
dot1q termination vid 20
ip address 192.168.20.1 24
arp broadcast enable
//查看接口
display ip interface brief
//查看路由
display ip routing-table

 

posted @ 2022-09-17 10:39  重构者  阅读(181)  评论(0编辑  收藏  举报