In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Experiment name: network Optimization
Configuration steps and ideas:
one。 Configure the PC with ip
Pc1:
Ip 192.168.1.1
Subnet mask: 255.255.255.0
Gateway: 192.168.1.254
Pc2:
Ip 192.168.2.1
Subnet mask: 255.255.255.0
Gateway: 192.168.2.254
Pc3:
Ip 192.168.1.2
Subnet mask: 255.255.255.0
Gateway: 192.168.1.254
Pc4:
Ip 192.168.2.2
Subnet mask: 255.255.255.0
Gateway: 192.168.2.254
Server1:
Ip: 192.168.20.1
Subnet mask: 255.255.255.0
Gateway: 192.168.20.254
two。 Create a vlan and add the port to the setting trunk
1. Create a vlan on sw1 to add the corresponding port to the setting trunk
Vlan batch 10 20 create vlan10 20
Interface Eth0/0/1 entry port
Port link-type aceess sets access mode
Port default vlan 10 adds ports to vlan
Set up the trunk:
Interface Eth0/0/11 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/13 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
two。 Create a vlan on sw2 to add the corresponding port to the setting trunk (to be consistent with sw1 database)
Vlan batch 10 20 create vlan10 20
Interface Eth0/0/1 entry port
Port link-type aceess sets access mode
Port default vlan 20 adds ports to vlan
Set up the trunk:
Interface Eth0/0/11 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/14 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
3. Create vlan setup trunk on sw3 (to be consistent with sw1,sw2 database)
Vlan batch 10 20 create vlan10 20
Set up the trunk:
Interface Eth0/0/13 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/14 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/12 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
4. Create a vlan on sw4 to add the corresponding port to the setting trunk
Vlan batch 10 20 create vlan10 20
Interface Eth0/0/1 entry port
Port link-type aceess sets access mode
Port default vlan 10 adds ports to vlan
Set up the trunk:
Interface Eth0/0/11 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/13 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
5. Create a vlan on sw5 to add the corresponding port to the setting trunk (to be consistent with sw4 database)
Vlan batch 10 20 create vlan10 20
Interface Eth0/0/1 entry port
Port link-type aceess sets access mode
Port default vlan 20 adds ports to vlan
Set up the trunk:
Interface Eth0/0/11 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/14 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
6. Create vlan setup trunk on sw6 (to be consistent with sw4,sw5 database)
Vlan batch 10 20 create vlan10 20
Set up the trunk:
Interface Eth0/0/13 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/14 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
Interface Eth0/0/12 entry port
Port link-type trunk sets trunk
Port trunk allow-pass vlan all allows all vlan to pass through
three。 Modify STP (spanning Tree Protocol)
1. Modify on sw1,sw2,sw3
Display stp looks at the stp of sw1,sw2,sw3, identifies the root switch and non-root switch, and finds the blocking port (the blocking port is ALTE)
It is found here that the blocking port is Eth0/0/13,sw2 as the root switch and sw1 as the non-root switch. In order to decompress the switch, sw3 is set as the root switch. The configuration is as follows:
Stp priorty 0 modifies priority to 0 (the smaller the stp priority, the higher the priority)
Then type display stp to see which is the root switch and the non-root switch.
two。 Modify on sw4,sw5,sw6
Display stp looks at the stp of sw1,sw2,sw3, identifies the root switch and non-root switch, and finds the blocking port (the blocking port is ALTE)
It is found here that the blocking port is Eth0/0/13,sw2 as the root switch and sw1 as the non-root switch. In order to decompress the switch, sw3 is set as the root switch. The configuration is as follows:
Stp priorty 0 modifies priority to 0 (the smaller the stp priority, the higher the priority)
Then type display stp to see which is the root switch and the non-root switch.
four。 Configure VRRP (equivalent to backup)
1. Add the port to the vlan10 on sw3
Interface GE0/01 entry port
Port link-type access sets access mode
Port default vlan10 adds vlan10 to the port
Interface GE0/0/2 entry port
Port link-type access sets access mode
Port default vlan10 adds vlan10 to the port
Interface GE0/0/3 entry port
Port link-type access sets access mode
Port default vlan10 adds vlan10 to the port
two。 Add the port to the vlan20 on sw6
Interface GE0/01 entry port
Port link-type access sets access mode
Port default vlan20 adds vlan20 to the port
Interface GE0/0/2 entry port
Port link-type access sets access mode
Port default vlan20 adds vlan20 to the port
Interface GE0/0/3 entry port
Port link-type access sets access mode
Port default vlan20 adds vlan20 to the port
Configure vlan10 gateways and ARRP on router AR1
Configure the gateway under the interface:
Interface GE0/0/0
Ip address 192.168.1.254
Configure virtual gateway (VRRP) under the interface
Interface GE0/0/0
Vrrp 1 ip 192.168.1.250 enable vrrp and configure virtual gateway
Vrrp 1 priority 150 configures vrrp host device priority. The default is 100 (the higher the vrrp priority, the higher the priority)
Vrrp vrid 1 track interface gi0/0/2 reduced 100 tracks the status of port gi0/0/2, if down, it decreases by 100 and the priority changes to 50
Configure the gateway and ARRP of vlan10 on router AR2
Configure the gateway under the interface:
Interface GE0/0/0
Ip address 192.168.1.253
Configure virtual gateway (VRRP) under the interface
Interface GE0/0/0
Vrrp 1 ip 192.168.1.250 enable vrrp and configure virtual gateway
Vrrp 1 priority 130 configures vrrp host device priority. The default is 100 (the higher the vrrp priority, the higher the priority)
Vrrp vrid 1 track interface gi0/0/2 reduced 100 tracks the status of port gi0/0/2, and if down, it decreases by 100 and the priority changes to 30
Configure the gateway and ARRP of vlan10 on router AR3
Configure the gateway under the interface:
Interface GE0/0/0
Ip address 192.168.1.252
Configure virtual gateway (VRRP) under the interface
Interface GE0/0/0
Vrrp 1 ip 192.168.1.250 enable vrrp and configure virtual gateway
Vrrp vrid 1 track interface gi0/0/2 reduced 100 tracks the status of port gi0/0/2, if down, it decreases by 100 and the priority changes to 10
Configure vlan20 gateways and ARRP on router AR1
Configure the gateway under the interface:
Interface GE0/0/0
Ip address 192.168.2.254
Configure virtual gateway (VRRP) under the interface
Interface GE0/0/0
Vrrp 1 ip 192.168.2.250 enable vrrp and configure virtual gateway
Vrrp 1 priority 150 configures vrrp host device priority. The default is 100 (the higher the vrrp priority, the higher the priority)
Vrrp vrid 1 track interface gi0/0/2 reduced 100 tracks the status of port gi0/0/2, if down, it decreases by 100 and the priority changes to 50
Configure the gateway and ARRP of vlan20 on router AR2
Configure the gateway under the interface:
Interface GE0/0/0
Ip address 192.168.2.253
Configure virtual gateway (VRRP) under the interface
Interface GE0/0/0
Vrrp 1 ip 192.168.2.250 enable vrrp and configure virtual gateway
Vrrp 1 priority 130 configures vrrp host device priority. The default is 100 (the higher the vrrp priority, the higher the priority)
Vrrp vrid 1 track interface gi0/0/2 reduced 100 tracks the status of port gi0/0/2, and if down, it decreases by 100 and the priority changes to 30
Configure the gateway and ARRP of vlan20 on router AR3
Configure the gateway under the interface:
Interface GE0/0/0
Ip address 192.168.2.252
Configure virtual gateway (VRRP) under the interface
Interface GE0/0/0
Vrrp 1 ip 192.168.2.250 enable vrrp and configure virtual gateway
Vrrp 1 priority 110 configures vrrp host device priority. The default is 100 (the higher the vrrp priority, the higher the priority)
Vrrp vrid 1 track interface gi0/0/2 reduced 100 tracks the status of port gi0/0/2, if down, it decreases by 100 and the priority changes to 10
Then change the network management to the virtual gateway of VRRP on the PC
Pc1:
Gateway: 192.168.1.250
Pc2:
Gateway: 192.168.2.250
Pc3:
Gateway: 192.168.1.250
Pc4:
Gateway: 192.168.2.250
Finally, check whether the gateway modified by ping on PC can be pieced together, which means that the VRRP has been created successfully.
five. Configure the URL between the switch and the router
Router (vlan cannot be created on the router, only ip can be configured under the port):
AR1:
Interface GE0/0/2 entry port
Ip address 192.168.12.1 255.255.255.0 configure ip
AR2:
Interface GE0/0/2 entry port
Ip address 192.168.13.1 255.255.255.0 configure ip
AR3:
Interface GE0/0/3 entry port
Ip address 192.168.14.1 255.255.255.0 configure ip
On switch sw7 (ip cannot be configured on the port on the switch, only ip can be configured on the virtual port of vlan):
1. Create vlan 30 40 50 60
Vlan batch 30 40 50 60
two。 Configure ip on the virtual port on vlan
Interface vlan 30
P address 192.168.12.2 255.255.255.0
Interface vlan 40
Ip address 192.168.13.2 255.255.255.0
Interface vlan 50
P address 192.168.14.2 255.255.255.0
Interface vlan 60
Ip address 192.168.19.1 255.255.255.0
Router AR4 (vlan cannot be created on a router, only ip can be configured under the port)
Interface GE0/0/1 entry port
Ip address 192.168.19.2 255.255.255.0 configure ip
Interface GE0/0/0
Ip address 192.168.20.254 255.255.255.0 configure the gateway for server1
six。 Create an OSPF region
On router AR1:
Ospf {1} creates an ospf region (id defaults to 1, writable but not writable)
Area 0 creates primary area 0 (0 is backbone area, others are non-backbone areas)
Network 192.168.1.254 establishes neighbor table
Network 192.168.2.254 establishes neighbor table
Network 192.168.12.1 set up neighbor table
On router AR2:
Ospf {1} creates an ospf region (id defaults to 1, writable but not writable)
Area 0 creates primary area 0 (0 is backbone area, others are non-backbone areas)
Network 192.168.1.253 set up neighbor table
Network 192.168.2.253 set up neighbor table
Network 192.168.13.1 set up neighbor table
On router AR3:
Ospf {1} creates an ospf region (id defaults to 1, writable but not writable)
Area 0 creates primary area 0 (0 is backbone area, others are non-backbone areas)
Network 192.168.1.252 establish neighbor table
Network 192.168.2.252 establish neighbor table
Network 192.168.14.1 set up neighbor table
On switch sw7:
Ospf {1} creates an ospf region (id defaults to 1, writable but not writable)
Area 0 creates primary area 0 (0 is backbone area, others are non-backbone areas)
Network 192.168.12.2 set up neighbor table
Network 192.168.13.2 set up neighbor table
Network 192.168.14.2 set up neighbor table
Network 192.168.19.1 set up neighbor table
On router AR4:
Ospf {1} creates an ospf region (id defaults to 1, writable but not writable)
Area 0 creates primary area 0 (0 is backbone area, others are non-backbone areas)
Network 192.168.19.2 set up neighbor table
Network 192.168.20.254 establishes neighbor table
The command to view the neighbor table:
Display ospf peer views ospf neighbor table details
Display ospf brief views ospf-related information of local devices
seven. Verification, test
Access to other hosts with any PC to achieve network interworking
Then enter shutdown into any port between the route and the switch to see if it can still be connected (intranet).
Command: ping x.x.x.x x.x.x.x stands for ip address
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.