As shown in the figure below, when facing medium and large network topology diagrams, you need to analyze the knowledge points involved in the network diagram according to your needs. The above figure involves knowledge of RIP protocol, single-arm routing, OSPF protocol, link bundling, NAT, and static routing. This article will analyze this network topology from these aspects.
After completing the IP address configuration of each router, layer three switch, layer two switch, pc and server 1, proceed as follows.
One RIP: R3 R4 R5 enable RIP protocol
R5
[R5]rip 1
[R5-rip-1]v 2
[R5-rip-1]un summary
[R5-rip-1]network 10.0.0.0
R4
[R4]rip 1
[R4-rip-1]v 2
[R4-rip-1]un summary
[R4-rip-1]network 10.0.0.0
R3
[R3-LoopBack0]rip 1
[R3-rip-1]v 2
[R3-rip-1]un summary
[R3-rip-1]network 10.0.0.0
Two R4 needs to configure single-arm routing
[R4]int g0/0/0.21
[R4-GigabitEthernet0/0/0.21]dot1q termination vid 21
[R4-GigabitEthernet0/0/0.21]ip add 10.1.21.1 24
[R4-GigabitEthernet0/0/0.21]a b e
[R4]int g0/0/0.22
[R4-GigabitEthernet0/0/0.22]dot1q termination vid 22
[R4-GigabitEthernet0/0/0.22]ip add 10.1.22.1 24
[R4-GigabitEthernet0/0/0.22]a b e
SW7
[SW7]int e0/0/10
[SW7-Ethernet0/0/10]p l t
[SW7-Ethernet0/0/10]p t a v a
[SW7-Ethernet0/0/10]int e0/0/1
[SW7-Ethernet0/0/1]p l a
[SW7-Ethernet0/0/1]p d v 21
[SW7-Ethernet0/0/1]int e0/0/2
[SW7-Ethernet0/0/2]p l a
[SW7-Ethernet0/0/1]p d v 22
Three OSPF protocol: R2 R3 RSW1 RSW2 need to configure OSPF
注意:配置时需要环回口声明router-id
R3需要RIP和OSPF相互注入
([R3-ospf-110]import-route rip type 1 cost 5)
([R3-rip-1]import-route ospf 110 cost 5)
下发默认
([R3-rip-1]default-route originate)
([R2-ospf-110]default-route-advertise)
R3
[R3]ospf 110 router-id 3.3.3.3
[R3-ospf-110]a 0
[R3-ospf-110-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-110-area-0.0.0.0]network 10.1.113.0 0.0.0.255
R2
[R2]ospf 110 router-id 2.2.2.2
[R2-ospf-110]a 0
[R2-ospf-110-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-110-area-0.0.0.0]network 10.1.111.0 0.0.0.255
[R2-ospf-110-area-0.0.0.0]network 10.1.112.0 0.0.0.255
[R2-ospf-110-area-0.0.0.0]network 10.1.113.0 0.0.0.255
RSW1
[RSW1]ospf 110 router-id 11.11.11.11
[RSW1-ospf-110]a 0
[RSW1-ospf-110-area-0.0.0.0]network 10.1.11.0 0.0.0.255
[RSW1-ospf-110-area-0.0.0.0]network 10.1.12.0 0.0.0.255
[RSW1-ospf-110-area-0.0.0.0]network 10.1.122.0 0.0.0.255
[RSW1-ospf-110-area-0.0.0.0]network 10.1.111.0 0.0.0.255
[RSW1-ospf-110-area-0.0.0.0]network 11.11.11.11 0.0.0.0
RSW2
[RSW2]ospf 110 router-id 22.22.22.22
[RSW2-ospf-110]a 0
[RSW2-ospf-110-area-0.0.0.0]network 10.1.13.0 0.0.0.255
[RSW2-ospf-110-area-0.0.0.0]network 10.1.14.0 0.0.0.255
[RSW2-ospf-110-area-0.0.0.0]network 10.1.112.0 0.0.0.255
[RSW2-ospf-110-area-0.0.0.0]network 10.1.122.0 0.0.0.255
[RSW2-ospf-110-area-0.0.0.0]network 22.22.22.22 0.0.0.0
Four RSW1 and RSW2 for link bundling
RSW1
[RSW1]int Eth-Trunk 1
[RSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/11 to 0/0/12
[RSW1-Eth-Trunk1]p l a
[RSW1-Eth-Trunk1]p d v 1000
RSW2
[RSW2]int Eth-Trunk 1
[RSW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/11 to 0/0/12
[RSW2-Eth-Trunk1]p l a
[RSW2-Eth-Trunk1]p d v 1000
Five network address translation (NAT)
Because the external network cannot access the internal network, NAT needs to be configured. This experiment is realized by easy IP
easy-IP:
[R2]acl 3000
[R2-acl-adv-3000]rule permit ip source 10.0.0.0 0.255.255.255
[R2]int g6/0/0
[R2-GigabitEthernet6/0/0]nat outbound 3000
[R2-GigabitEthernet6/0/0]nat server protocol tcp global 8.8.8.8 www inside 10.1.100.100 www
Six static routing
[R1]ip route-static 0.0.0.0 0.0.0.0 202.2.12.2
[R2]ip route-static 0.0.0.0 0.0.0.0 202.2.12.1
Seven test connectivity
Test with pc1——pc6, ping the IP address of pc7 to 202.2.2.100, and find the connection.
Capture the packet to check the NAT address translation. The
conversion is successful.