您好,登錄后才能下訂單哦!
交換機vlan路由實驗——單臂路由方式
網絡拓撲圖:
路由器上的配置:
<R>system-view
[R]interface Ethernet 0/0/0.1
[R-Ethernet0/0/0.1]dot1q termination vid 10
[R-Ethernet0/0/0.1]ip address 192.168.1.1 255.255.255.0
[R-Ethernet0/0/0.1]q
[R]interface Ethernet 0/0/0.2
[R-Ethernet0/0/0.2]dot1q termination vid 20
[R-Ethernet0/0/0.2]ip address 192.168.2.1 255.255.255.0
[R-Ethernet0/0/0.2]q
[R]display ip interface brief
Interface IP Address/Mask Physical Protocol
Ethernet0/0/0 unassigned up down
Ethernet0/0/0.1 192.168.1.1/24 up up
Ethernet0/0/0.2 192.168.2.1/24 up up
交換機上的配置:
[S]interface GigabitEthernet 0/0/1
[S-GigabitEthernet0/0/1] port link-type trunk
[S-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20
[S-GigabitEthernet0/0/1]q
[S]interface GigabitEthernet0/0/2
[S-GigabitEthernet0/0/2] port link-type access
[S-GigabitEthernet0/0/2] port default vlan 10
[S-GigabitEthernet0/0/2]q
[S]interface GigabitEthernet 0/0/3
[S-GigabitEthernet0/0/3]port link-type access
[S-GigabitEthernet0/0/3]port default vlan 20
[S-GigabitEthernet0/0/3]q
實驗結果驗證:PC1和PC2之間可以ping通
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。