1. 程式人生 > >在Packet Tracer中實現路由器單臂路由配置

在Packet Tracer中實現路由器單臂路由配置

單臂路由

實驗目標:


<1>掌握單臂路由器配置方法

<2>通過單臂路由器實現不同VLAN之間互相通信


技術原理:


單臂路由,是為實現VLAN間通信的三層網絡設備路由器。它只需要一個以太網,通過創建子接口可以承擔所有VLAN的網關,而在不同的VLAN間轉發數據。


實驗步驟:


<1>建立如圖所示的拓撲圖



技術分享圖片



<2>對Switch進行設置

en

conf t

vlan 2

exit

vlan 3

exit

interface fastEthernet 0/2

switchport access vlan 2

exit

int fa 0/3

switchport access vlan 3

exit

int fa 0/1

switchport mode trunk

技術分享圖片


<3>對Router進行配置


en

conf t

int fa 0/0

no shutdown

exit

interface fast 0/0.1

encapsulation dot1Q 2

ip address 192.168.1.1 255.255.255.0

exit

int fa 0/0.2

encapsulation dot1q 3

ip address 192.168.2.1 255.255.255.0

end

show ip route

技術分享圖片

技術分享圖片

在Packet Tracer中實現路由器單臂路由配置