In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Question:
Refer to the following network topology to realize the communication of the same vlan across the switch.
1. Using eNSP to build experimental environment
two。 After setting up, assign IP address and subnet mask to each PC
As shown in the above figure, put the
The IP address of PC1 is configured as 192.168.1.1 with a subnet mask of 255.255.255.0
The IP address of PC2 is configured as 192.168.1.2 with a subnet mask of 255.255.255.0
The IP address of PC3 is configured as 192.168.1.3 with a subnet mask of 255.255.255.0
The IP address of PC4 is configured as 192.168.1.4 with a subnet mask of 255.255.255.0
3. After configuring the IP address, we start to configure our switch 1max 2.
[sw1]-vlan batch 5 10 creates multiple discontiguous vlan 5 and 10
[sw1]-interface Ethernet0/0/1 enters the interface configuration mode of 0ram 0ram 1
[sw1]-Ethernet0/0/1] port link-type access sets the access mode to port 0, 0 and port 1
[sw1]-Ethernet0/0/1] port default vlan5 adds ports to vlan5
[sw1]-interface Ethernet0/0/2 enters the interface configuration mode of 0ram 0ram 2
[sw1]-Ethernet0/0/2] port link-type access sets the access mode of port 0 to 0 port 2
[sw1]-Ethernet0/0/2] port default vlan10 adds ports to vlan10
[sw1]-interface Ethernet0/0/3 enters the configuration mode of 0ram 0ram 3 interface
[sw1]-Ethernet0/0/3] port link-type trunk sets 0 to 0 port to trunk mode
[sw1]-Ethernet0/0/3] port trunk allow-pass vlan 5 10 allows all vlan data to pass through
[Sw1] display vlan View vlan
4. Proficient in using tab key completion command
5. After the above configuration last night, let's test it and see if we can ping.
There is no ping to the IP address of the PC in the same vlan.
6. Next, let's continue to open the switch and enter a command.
[Huawei] stp disable closes spanning tree (Note: enter password stp disable in system mode)
Warning: The global STP state will be changed. Continue? [Y/N] y
The global STP state will be changed. Do you want to continue? y big N Y (yes)
Note: both switches need to be entered
7. Let's see if we can ping a PC with the same vlan.
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.