路由器單臂路由配置

一、實驗名稱


路由器單臂路由配置


二、實驗內容


1.新建 packer tracer 拓撲圖
2.當交換機設置兩個
Vlan 時,邏輯上已經成爲兩個網絡,廣播被隔離了。兩個 Vlan 的網
絡要通信,必須通過路由器,如果接入路由器的一個物理端口,則必須有兩個子接口分別與
兩個
Vlan 對應,同時還要求與路由器相連得交換機的端口 fa 0/1 要設置爲 trunk,因爲這個
接口要通過兩個
Vlan 的數據包。
3.檢查設置情況,應該能夠正確的看到
Vlan Trunk 信息。
4.計算機的網關分別指向路由器的子接口。
5.配置子接口,開啓路由器物理接口。
6.默認封裝
dot1q 協議。
7.配置路由器子接口
IP 地址。


三、實驗過程


1.將PC 2 臺、 Router_2811 1 臺、Switch_2960 1 臺按照網絡拓撲直連線互聯

blob.png

2.配置交換機

ch
en
conf t
vlan 2
exit
vlan 3
exit

int f0/1
switchport mode trunk

int f0/2
switchport access vlan 2
int f0/3
switchport access vlan 3

blob.png

blob.png

3.配置路由器

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

blob.png




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章