1.1.1組網拓撲網絡
1.1.2.實驗任務與實驗目標
(1)實現上述組網二層廣播域VLAN隔離和三層全網全連通。
(2) 分析Vlan八、 Vlan十、 Vlan11的廣播域大小及二層網絡通訊範圍。
(3) 分析PC1 ping PC4的三層通訊過程和二層通訊過程。.
(4)掌握層次化配置與排錯在局域網項目中的運用。
(5)掌握三層邏輯拓撲與二層邏輯拓撲抽象。
(6)掌握廣播域大小的判斷及二層網絡通訊範圍分析。
(7)掌握三 層交換環境下的層次化數據流分析。
1.1.2.實驗任務與實驗目標ide
1.1.3. 基本信息配置
system-view
[H3C]hostname SW1
1.1.4. VLAN配置
SW2配置
[SW2]vlan 10 // 建立 vlan 10
[SW2-vlan10]port GigabitEthernet 1/0/2 // 將接口加入 vlan 10
[SW2]interface GigabitEthernet 1/0/2 // 進入接口 1/0/2
[SW2-GigabitEthernet1/0/2]port link-type access // 配置爲 access 模式oop
[SW2]interface GigabitEthernet 1/0/3 // 建立 vlan 20
[SW2]interface GigabitEthernet 1/0/3 // 進入接口 1/0/3
[SW2-GigabitEthernet1/0/2]port link-type access // 配置爲 access 模式測試
SW3配置
[SW3]vlan 10 // 建立 vlan 10
[SW3-vlan10]port GigabitEthernet 1/0/2 // 將接口加入 vlan 10
[SW3]interface GigabitEthernet 1/0/2 // 進入接口 1/0/2
[SW3-GigabitEthernet1/0/2]port link-type access // 配置爲 access 模式
[SW3]vlan 20 // 建立 vlan 20
[SW3]interface GigabitEthernet 1/0/3 // 進入接口 1/0/3
[SW3-GigabitEthernet1/0/3]port link-type access // 配置爲 access 模式spa
1.1.5. Trunk 配置
(1) SW1——SW2 的 Trunk 鏈路調測orm
SW1配置
[SW1]interface GigabitEthernet 1/0/1
[SW1-GigabitEthernet1/0/1]port link-type trunk 接口配置爲Trunk口
[SW1-GigabitEthernet1/0/1]port trunk permit vlan all 容許全部VLAN經過blog
SW2配置
[SW2]interface GigabitEthernet 1/0/1
[SW2-GigabitEthernet1/0/1]port link-type trunk 接口配置爲Trunk口
[SW2-GigabitEthernet1/0/1]port trunk permit vlan all 容許全部VLAN經過接口
(1) SW1——SW3 的 Trunk 鏈路調測
[SW1]interface GigabitEthernet 1/0/2
[SW1-GigabitEthernet1/0/2]port link-type trunk 接口配置爲Trunk口
[SW1-GigabitEthernet1/0/2]port trunk permit vlan all 容許全部VLAN經過圖片
[SW3]interface GigabitEthernet 1/0/1
[SW3-GigabitEthernet1/0/1]port link-type trunk 接口配置爲Trunk口
[SW3-GigabitEthernet1/0/1]port trunk permit vlan all 容許全部VLAN經過ip
查看Access與Trunk接口信息
[H3C]display int brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
InLoop0 UP UP(s) –
MGE0/0/0 DOWN DOWN –
NULL0 UP UP(s) –
REG0 UP – –
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
FGE1/0/53 DOWN 40G A A 1
FGE1/0/54 DOWN 40G A A 1
GE1/0/1 UP 1G(a) F(a) T 1
GE1/0/2 DOWN auto A A 10
GE1/0/3 DOWN auto A A 20
GE1/0/4 UP 1G(a) F(a) A 1
GE1/0/5 DOWN auto A A 1
GE1/0/6 DOWN auto A A 1
1.1.7.三層接口配置及鏈路測試
[SW1]vlan 10
[SW1]vlan 20
[SW1]interface vlan 10
[SW1-Vlan-interface10]ip address 192.168.10.254 24 //vlan 10 的路由點
[SW1]interface vlan 20
[SW1-Vlan-interface20]ip address 192.168.20.254 24 //vlan 20 的路由點
SW1# show ip interface brief //.查看接口簡要狀態
SW1# show ip route //查看全局路由表
SW1# show ip arp //查看ARP表
SW1# show mac-address- table dynamic //查看MAC表
SW1# show run //查看當前運行配置
參看生成的路由表項
[SW1]display ip routing-table
Destinations : 16 Routes : 16
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.10.0/24 Direct 0 0 192.168.10.254 Vlan10
192.168.10.0/32 Direct 0 0 192.168.10.254 Vlan10
192.168.10.254/32 Direct 0 0 127.0.0.1 InLoop0
192.168.10.255/32 Direct 0 0 192.168.10.254 Vlan10
192.168.20.0/24 Direct 0 0 192.168.20.254 Vlan20
192.168.20.0/32 Direct 0 0 192.168.20.254 Vlan20
192.168.20.254/32 Direct 0 0 127.0.0.1 InLoop0
192.168.20.255/32 Direct 0 0 192.168.20.254 Vlan20
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
PC配置IP地址和網關
PC1:192.168.10.1/24
PC2:192.168.20.1/24
PC3:192.168.10.2/24
PC4:192.168.20.2/24