In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Simple understanding of Valn of switching Technology and interworking of different Vlan
I. problems solved by Vlan
Solve the isolation of broadcast data between the same network segment
Expansion: with the help of three-layer devices, the broadcast data of the same network segment of the second layer can be isolated, and the links between different network segments can also be realized.
2. Simple understanding of Vlan
Several areas are divided on a switch, each of which is an isolated container (the isolated content is the broadcast data in the network).
The interworking between different Vlan generally refers to the interworking between different network segments. Since the network segments are different, if you want to communicate, you can't do it at layer 2, so you need layer 3 routing technology (that is, you need a 'gateway': the doorway administrator, you want to go there and talk to me, I'll see if you can go, ).
The interworking of the same Vlan on different switches requires the help of trunk (Relay Technology). Personal understanding: there are 10 ports on switch 1 that belong to Vlan1 management. Now I want to expand the territory, even the Vlan1 port on switch 2 is also managed.
Another way to interwork between different Vlan is to use layer 3 device routers as gatekeepers (gateways).
Simulator experiment 1
Objective: to isolate the broadcast domain of the same network segment through Vlan, that is, two IP of the same network segment cannot communicate with each other when they belong to different Vlan.
Topology:
Switch configuration:
Switch#show vlan brVLAN Name Status Ports-----1 default active Fa0/5, Fa0/6, Fa0/7 Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19 Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/210 VLAN0010 active Fa0/1 Fa0/240 VLAN0040 active Fa0/41002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active Switch#
Simulator experiment II
Objective: to realize the interworking of different network segments through the routing function of layer 3 switch.
Topology:
Switch configuration:
S1#show vlan brVLAN Name Status Ports-----1 default active Fa2/1, Fa3/1, Fa4/1 Fa5/110 VLAN0010 active Fa0/11002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active S1#
S2#show vlan brief VLAN Name Status Ports-----1 default active Fa2/1, Fa3/1, Fa4/1 Fa5/120 VLAN0020 active Fa0/11002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active S2#
S3#show vlan brief VLAN Name Status Ports-----1 default active Fa0/3, Fa0/4, Fa0/5 Fa0/6 Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15, Fa0/16, Fa0/17 Fa0/18 Fa0/19, Fa0/20, Fa0/21, Fa0/22 Fa0/23, Fa0/24, Gig0/1 Gig0/210 VLAN0010 active 20 VLAN0020 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active S3#
S3#show interfaces trunk Port Mode Encapsulation Status Native vlanFa0/1 desirable nMel 802.1q trunking 1Fa0/2 auto nMel 802.1q trunking 1Port Vlans allowed on trunkFa0/1 1-1005Fa0/2 1-1005Port Vlans allowed and active in management domainFa0/1 1Magne10Magne20Fa0Compact 21Magne10Magazine 20Port Vlans in spanning tree forwarding state and not prunedFa0/1 1Magne1010Fa0and21Fa0Cand21Mae 20Scripture
S3#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/1 unassigned YES unset up up FastEthernet0/2 unassigned YES unset up up FastEthernet0/3 unassigned YES unset down down.. Vlan1 unassigned YES unset administratively down down Vlan10 192.168.1.254 YES manual up up Vlan20 192.168.2.254 YES manual up upS3#
Simulator experiment 3
Objective: to realize the interworking of different network segments through routers, that is, single-arm routing or one-stick routing.
Topology:
Switch configuration:
Switch#show vlan brVLAN Name Status Ports-----1 default active Fa0/4, Fa0/5, Fa0/6 Fa0/7 Fa0/8, Fa0/9, Fa0/10, Fa0/11 Fa0/12, Fa0/13, Fa0/14, Fa0/15 Fa0/16, Fa0/17, Fa0/18 Fa0/19 Fa0/20, Fa0/21, Fa0/22, Fa0/23 Fa0/24, Gig1/1 Gig1/210 VLAN0010 active Fa0/120 VLAN0020 active Fa0/21002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active Switch#
Router configuration
Router#show ip route Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2 E1-OSPF external type 1, E2-OSPF external type 2, E-EGP I-IS-IS, L1-IS-IS level-1, L2-IS-IS level-2, ia-IS-IS inter area *-candidate default U-per-user static route, o-ODR P-periodic downloaded static routeGateway of last resort is not setC 192.168.1.0 + 24 is directly connected, FastEthernet0/0.1C 192.168.2.0 + + 24 is directly connected, FastEthernet0/0.2Router#
Router#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset up up FastEthernet0/0.1 192.168.1.254 YES manual up up FastEthernet0/0.2 192.168.2.254 YES manual up up FastEthernet1/0 unassigned YES unset administratively down down Router#
Router#show running-config Building configuration...Current configuration: 800 bytes!interface FastEthernet0/0 no ip address duplex auto speed auto!interface FastEthernet0/0.1 encapsulation dot1Q 10 ip address 192.168.1.254 255.255.255.0!interface FastEthernet0/0.2 encapsulation dot1Q 20 ip address 192.168.2.254 255.255.255.0!Router#
VI. Summary:
You can use Vlan to divide a switch into different Vlan, and realize the virtual appearance of multiple switches.
The interworking between different Vlan (also different network segments) can be realized by using the layer 3 switching function of Vlan, or by encapsulating the subinterfaces of the router (encapsulation) into dot1Q (i.e. Vlan).
Attached is the Cisco PT experiment script.
#
Attachment: http://down.51cto.com/data/2366781
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.