【新華三】網絡工程師 H3C設備-如何配置單臂路由,實現不同網段通信?來~輕鬆掌握單臂路由技術原理!

1.1 組網一:新華三單臂路由組網實驗

1.1.1 實驗拓撲圖

看完記得點贊加關注!!!謝謝!
v2-dd09c6c01a56ee866911aaeaa955e517_720w.png

1.1.2.實驗任務與實驗目標

(1)實現上述組網二層廣播域VLAN隔離和三層全網全連通。
(2) 分析Vlan10、 Vlan20的廣播域大小及二層網絡通信範圍。
(3)分析PC1pingPC4的三層通信過程和二層通信過程。
(4)掌握層次化配置與排錯在局域網項目中的運用。
(5)掌握三層邏輯拓撲與二層邏輯拓撲抽象。
(6)掌握廣播域大小的判斷及二層網絡通信範圍分析。
(7)掌握VLAN環境下的層次化數據流分析。





1.1.3. 基本信息配置

system-view
[H3C]hostname SW1

1.1.4. VLAN配置

SW1配置
[SW1]vlan 10 // 創建 vlan 10
[SW1-vlan10]port GigabitEthernet 1/0/2 // 將接口加入 vlan 10
[SW1]interface GigabitEthernet 1/0/2 // 進入接口 1/0/2
[SW1-GigabitEthernet1/0/2]port link-type access // 配置爲 access 模式



[SW1]interface GigabitEthernet 1/0/3 // 創建 vlan 20
[SW1]interface GigabitEthernet 1/0/3 // 進入接口 1/0/3
[SW1-GigabitEthernet1/0/2]port link-type access // 配置爲 access 模式

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 模式
[SW2]vlan 20 // 創建 vlan 20
[SW2]interface GigabitEthernet 1/0/3 // 進入接口 1/0/3
[SW2-GigabitEthernet1/0/3]port link-type access // 配置爲 access 模式






1.1.5. Trunk 配置

(1) SW1——SW2 的 Trunk 鏈路調測

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通過


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通過


查看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.6.三層接口配置及鏈路測試

[SW1]interface GigabitEthernet 1/0/4
[SW1-GigabitEthernet1/0/4]port link-type trunk
[SW1-GigabitEthernet1/0/4]port trunk permit vlan all

SW1的上連接口配置(本步任務:配置SW1的上連接口。)
查看SW1上行接口信息
[SW1]display interface GigabitEthernet 1/0/4
GigabitEthernet1/0/4
Current state: UP
Line protocol state: UP
IP packet frame type: Ethernet II, hardware address: ac7c-6103-0100
Description: GigabitEthernet1/0/4 Interface
Bandwidth: 1000000 kbps
Loopback is not set
1000Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
Maximum frame length: 9216
Allow jumbo frames to pass
Broadcast max-ratio: 100%
Multicast max-ratio: 100%
Unicast max-ratio: 100%
PVID: 1
MDI type: Automdix
Port link-type: Trunk
VLAN Passing: 1(default vlan), 10, 20
VLAN permitted: 1(default vlan), 2-4094
Trunk port encapsulation: IEEE 802.1q
Port priority: 2
Last link flapping: 0 hours 14 minutes 40 seconds
Last clearing of counters: Never

























單臂路由配置(本步任務:配置RTA的三層接口及子接口。)

[RTA]interface GigabitEthernet 0/0 進入物理接口
[RTA-GigabitEthernet0/0]no ip address 關閉物理IP地址
[RTA-GigabitEthernet0/0]no shutdown 激活物理端口
[RTA]interface GigabitEthernet 0/0.1 進入子接口
[RTA-GigabitEthernet0/0.1]ip address 192.168.10.254 24 配置子接口IP地址
[RTA-GigabitEthernet0/0.1]vlan-type dot1q vid 10
//封裝dot1q, vlan id 10,對應vlan 10, vlan 10的路由點。
[RTA-GigabitEthernet0/0.1]no shutdown
RTA]interface GigabitEthernet 0/0.2
[RTA-GigabitEthernet0/0.2]ip address 192.168.20.254 24
[RTA-GigabitEthernet0/0.2]vlan-type dot1q vid 20
[RTA-GigabitEthernet0/0.2]no shutdown
//封裝dot1q, vlan id 20,對應vlan 20, vlan 20的路由點。











[RTA]display ip interface brief 查看子接口地址
*down: administratively down
(s): spoofing (l): loopback
Interface Physical Protocol IP Address Description
GE0/0 up up – –
GE0/0.1 up up 192.168.10.254 –
GE0/0.2 up up 192.168.20.254 –
GE0/1 down down – –
GE0/2 down down – –
GE5/0 down down – –
GE5/1 down down – –
GE6/0 down down – –
GE6/1 down down – –
Ser1/0 down down – –
Ser2/0 down down – –
Ser3/0 down down – –
Ser4/0 down down – –















[H3C]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 GE0/0.1
192.168.10.0/32 Direct 0 0 192.168.10.254 GE0/0.1
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 GE0/0.1
192.168.20.0/24 Direct 0 0 192.168.20.254 GE0/0.2
192.168.20.0/32 Direct 0 0 192.168.20.254 GE0/0.2
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 GE0/0.2
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地址和網關


20200401095507929.png

20200401095515485.png

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