[Xin H3C] Network Engineer H3C Equipment-How to configure single-arm routing to realize communication between different network segments? Come~ easily master the principle of single-arm routing technology!

1.1 Network 1: Xinhua Three single-arm routing network experiment

1.1.1 Experimental topology

Remember to like and follow after reading! ! ! Thank you!
v2-dd09c6c01a56ee866911aaeaa955e517_720w.png

1.1.2. Experimental tasks and objectives

(1) Realize the VLAN isolation of the second-tier broadcast domain of the above-mentioned networking and the full connectivity of the third-tier network.
(2) Analyze the broadcast domain size of Vlan10 and Vlan20 and the communication range of the Layer 2 network.
(3) Analyze the three-layer communication process and the two-layer communication process of PC1 to PC4.
(4) Master the application of hierarchical configuration and troubleshooting in LAN projects.
(5) Master the three-layer logical topology and the two-layer logical topology abstraction.
(6) Master the judgment of the broadcast domain size and the analysis of the communication range of the second-layer network.
(7) Master the hierarchical data flow analysis under the VLAN environment.

1.1.3. Basic information configuration

system-view
[H3C]hostname SW1

1.1.4. VLAN configuration

SW1 configuration
[SW1]vlan 10 // Create vlan 10
[SW1-vlan10]port GigabitEthernet 1/0/2 // Add interface to vlan 10
[SW1]interface GigabitEthernet 1/0/2 // Enter interface 1/0/2
[SW1-GigabitEthernet1/0/2]port link-type access // Configure to access mode

[SW1]interface GigabitEthernet 1/0/3 // create vlan 20
[SW1]interface GigabitEthernet 1/0/3 // enter interface
1/0/3 [SW1-GigabitEthernet1/0/2]port link-type access // Configure to access mode

SW2 configuration
[SW2]vlan 10 // Create vlan 10
[SW2-vlan10]port GigabitEthernet 1/0/2 // Add interface to vlan 10
[SW2]interface GigabitEthernet 1/0/2 // Enter interface 1/0/2
[SW2-GigabitEthernet1/0/2]port link-type access // Configure to access mode
[SW2]vlan 20 // Create vlan 20
[SW2]interface GigabitEthernet 1/0/3 // Enter interface 1/0/3
[ SW2-GigabitEthernet1/0/3]port link-type access // Configure to access mode

1.1.5. Trunk configuration

(1) SW1-SW2 Trunk link commissioning

SW1 configuration
[SW1]interface GigabitEthernet 1/0/1
[SW1-GigabitEthernet1/0/1]port link-type trunk The interface is configured as a trunk port
[SW1-GigabitEthernet1/0/1]port trunk permit vlan all allows all VLANs to pass

SW2 configuration
[SW2]interface GigabitEthernet 1/0/1
[SW2-GigabitEthernet1/0/1]port link-type trunk The interface is configured as a trunk port
[SW2-GigabitEthernet1/0/1]port trunk permit vlan all allows all VLANs to pass

查看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. Layer 3 interface configuration and link test

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

SW1 upper connection port configuration (this step task: configure SW1 upper connection port.)
View SW1 uplink interface information
[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

Single-arm routing configuration (task in this step: configure RTA's Layer 3 interface and sub-interfaces.)

[RTA]interface GigabitEthernet 0/0 enter the physical interface
[RTA-GigabitEthernet0/0] no ip address close the physical IP address
[RTA-GigabitEthernet0/0] no shutdown activate the physical port
[RTA] interface GigabitEthernet 0/0.1 enter the sub-interface
[RTA -GigabitEthernet0/0.1]ip address 192.168.10.254 24 Configure the sub-interface IP address
[RTA-GigabitEthernet0/0.1]vlan-type dot1q vid 10
//Encapsulate dot1q, vlan id 10, corresponding to vlan 10, vlan 10 routing points.
[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
//Package dot1q, vlan id 20, corresponding to the routing point of 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 //Check the routing table, there will be two routes

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 configuration IP address and gateway


20200401095507929.png

20200401095515485.png

Guess you like

Origin blog.51cto.com/15039035/2559033