Simulation company network environment, a great god please help to see how to get to achieve the entire network communication
CodePudding user response:
To set all segment gateway, to any a layer 3 switches on, such as LSW2 above,
CodePudding user response:
Through vlanif + routing can achieve entire network communication, LSW10 switches, the host can realize communication through vlanif below, LSW10 and LSW2 and by configuring the routing between LSW3, give you a huawei router configuration cases for reference: https://support.huawei.com/hedex/hdx.do? Docid=EDOC1100087046 & amp; Id=useful - CN_TASK_0177868034 & amp; Lang=useful, I hope it can help you,
CodePudding user response:
reference 1st floor Iforgetmyid response: all segment gateway, all set to any a layer 3 switches on, such as LSW2 above, Ok, thank you very much CodePudding user response:
reference 1st floor Iforgetmyid response: all segment gateway, all set to any a layer 3 switches on, such as LSW2 above, Ok, thank you very much CodePudding user response:
To ask again, LSW10 and SW2 and SW3 configuration routing between them, the IP address must be the same network segment CodePudding user response:
Use of a single layer 3 switches to realize different vlan and communication between different network segments (huawei and cisco) Copyright statement: this article to CSDN blogger (Yeliang Wu) of the original article, follow the CC BY 4.0 - SA the copyright agreement, reproduced and this statement, please attach the original source link The original link: https://blog.csdn.net/wylfengyujiancheng/article/details/51762169 A, huawei layer 3 switches to realize different network segment and communication between different vlans We use huawei eNSP simulator as experimental tool, Goal: the exchange between pc1 and pc2 1, the network topology Here to write image description 2, layer 3 switches configuration 1, sys view mode into the system first, and then establish vlan2, vlan3 (vlan batch 2, 3) 2, into the vlanif2, set vlan2 address and mask; Enter vlanif3, set vlan3 address and mask, why the gateway to the vlan configuration? Vlan if the given address, then the vlan represents a three layer interface, but is a logical interface, this virtual interface represents the layer 3 switches on a routing interface, associated with at least one physical interface can have actual effect, layer 3 switches refers to at least three layer has a simple routing function, through which the PC to the Internet are certainly one of the addresses for the address section where on the Internet, this address to connect to other network segments, then this address will be on a router interface, this interface can't through the router routing functions to connect to other network segments, because in addition to have the function of the router equipment, other types of equipment cannot let two different communication a network segment, the address is in the same network segment with PC, but also on a router interface, so the address must be in the router configured on the interface connection to the PC, PC via this address as a barrier to connect to other network segments, this address is called a gateway, 3, set G0/0/1 port to vlan2, set G0/.two survivors port to vlan3 # sysname S1 # VLAN batch 2, 3, # interface VLANif2 IP address 192.168.8.1 255.255.255.0 # interface VLANif3 IP address 172.16.8.1 255.255.255.0 # interface GigabitEthernet0/0/1 The port link -type access The port default VLAN 2 # interface GigabitEthernet0/.two survivors The port link -type access The port default VLAN 3 3, PC machine configuration Connect PC1 G0/0/1 port, the port belongs to vlan2, thus setting the IP address of the PC1 will make its vlanif2 address in the same period, the gateway is set to vlanif2 address, Connect the PC2 G0/.two survivors port, the port belongs to vlan3, thus setting the IP address of the PC2 will make its vlanif3 address in the same period, the gateway is set to vlanif3 address, 4 PCS test On pc1 and pc2 ping the address each other respectively, found that different network segment and communication between different vlans, Here to write image description Here to write image description Second, through the cisco layer 3 switches to realize different network segment and communication between different vlans Goal: the exchange between pc1 and pc2 1, the topological 2, a configuration switch We're going to use S1 to realize respectively in VLAN1 and VLAN2 PC1 and PC2, the communication between the first division of VLAN in S1, configuration commands for: Create a vlan S1 (config) # vlan 3 S1 (config - vlan) # exit S1 (config) # vlan 2 S1 (config - vlan) # exit To configure vlan on the interfaces 1 and 2 S1 (config) # int f0/1 S1 (config - if) # switchport mode access S1 (config - if) # switchport access vlan 2 S1 (config - if) # int f0/2 S1 (config - if) # switchport mode access S1 (config - if) # switchport access vlan 3 Create a virtual vlan for VLAN1 and VLAN2 configuration gateway, is PC1, PC2 gateway, configuration commands for: S1 (config) # int vlan 2 S1 (config - if) # no shutdown S1 (config - if) # IP address 192.168.8.1 255.255.255.0 S1 (config) # int vlan 3 S1 (config - if) # no shutdown S1 (config - if) # IP address 172.16.8.1 255.255.255.0 Configuration layer 3 switching configuration commands as: S1 (config) # IP routing //the above open S1 routing functions when S1 is enabled the function of three layers, View the routing table Here to write image description 3, PC machine configuration Here to write image description Here to write image description Will PC1 section configured to vlan2 gateway network segments, PC1 gateway configured to vlan2 gateway; PC2 network section configured to vlan3 network segment, the gateway for vlan3 gateway, 4, test On the pc1 Here to write image description On the pc2 Here to write image description Above is the use of a single layer 3 switches (huawei, cisco) finish not lton-us segment and blocked traffic between vlans CodePudding user response:
reference 5 floor m0_48176864 reply: to ask again, LSW10 and SW2 and SW3 configuration routing between them, the IP address must be the same network segment? Between the three switches, match routing? CodePudding user response:
First you need to implement the communication between different network segments entire network VLAN, is achieved by layer 3 switches (this is the normal state, with the development of technology, the barriers will be broken), One scenario is that you put the end on SW2 gateway, do each VLAN gateway IFVLAN, Trunk and bottom allied to the various switches in the past, the terminal docking SW5, 6, 7 bottom allied do Acces, this should be the most simple method, and the gateway end on the other Switch, you can go to study, which is the basis of HCIA common sense, suggest you can learn to learn, CodePudding user response:
reference 5 floor m0_48176864 reply: to ask again, LSW10 and SW2 and SW3 configuration routing between them, the IP address must be the same network segment? Don't need to be configured for the same network segment, as long as each other can, you can see the three layer 3 switches as three router, CodePudding user response:
refer to 7th floor Iforgetmyid response: Quote: refer to the fifth floor m0_48176864 reply: to ask again, LSW10 and SW2 and SW3 configuration routing between them, the IP address must be the same network segment? Between the three switches, match routing? nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull