当前位置:网站首页>Huawei ENSP simulator layer 3 switch

Huawei ENSP simulator layer 3 switch

2022-07-04 21:13:00 Python Pegasus

Catalog

principle : 

Implementation steps of layer 3 switch :

One 、 Connect with a switch pc machine , Divide them into different vlan, Achieve isolation .

1、 Create the required vlan

2、 Will connect pc The interface of the machine is set to access Interface ( Enter this interface before setting int command )

3、 Divide the interface into vlan in ( Enter this interface before setting )

4、 Set the interface connecting another switch to trunk Interface ( Enter this interface before setting )

5、 to trunk Open access requires peers vlan( Enter this interface before setting )

  Implementation steps :​ edit

Two 、 Another switch , When these machines pc Gateway of computer , For each vlan To configure IP Address

1、 Create the required vlan

2、 Set the interface connecting the switch to trunk Interface

3、 to trunk Open access requires peers vlan

4、 Enter the created vlan( What to use vlan They all need to be configured )

  Implementation steps :​ edit


principle : 

First use vlan Isolate users , Then use a three-layer switch , Connect isolated users .

Isolation : What is isolated is the fault

connected : What is connected is normal communication

Use three-layer switch to realize .

use LSW2 The switch will be two pc Machine separation , Divided into different vlan in . Reuse LSW1 The switch will be two pc Machine connection .

These two pc The machine cannot pass directly LSW2 Switch communication ( Isolate the spread of the virus ), It needs to pass LSW1 This switch realizes communication ( Achieve communication ).

Implementation steps of layer 3 switch :

One 、 Connect with a switch pc machine , Divide them into different vlan, Achieve isolation .

1、 Create the required vlan

# establish vlan 10  and vlan 20
vlan 10
vlan 20

# Batch creation vlan
vlan batch  Enter after enter vlan name , Every vlan Names are separated by spaces 

2、 Will connect pc The interface of the machine is set to access Interface ( Enter this interface before setting int command )

# The link type of this port is access 
port link-type access

3、 Divide the interface into vlan in ( Enter this interface before setting )

# Divide the interface into vlan 10  in 
port default vlan 10

4、 Set the interface connecting another switch to trunk Interface ( Enter this interface before setting )

port link-type trunk

5、 to trunk Open access requires peers vlan( Enter this interface before setting )

# The trunk The interface is open to all vlan
port trunk allow-pass vlan all

# But one by one vlan Interface , example :
# to trunk The interface is open vlan 10  and vlan 20 Data packets of 
port trunk allow-pass vlan 10
port trunk allow-pass vlan 20

  Implementation steps :

Two 、 Another switch , When these machines pc Gateway of computer , For each vlan To configure IP Address

1、 Create the required vlan

# establish vlan10  and  vlan 20
vlan 10
vlan 20

2、 Set the interface connecting the switch to trunk Interface

# The link type of this port is relay 
port link-type trunk

3、 to trunk Open access requires peers vlan

# to trunk Interface release vlan 10 and vlan 20
port trunk allow-pass vlan 10
port trunk allow-pass vlan 20

# to trunk Interface release all vlan
port trunk allow-pass vlan all

4、 Enter the created vlan( What to use vlan They all need to be configured )

# Get into vlan 10  port 
interface Vlanif 10

# Abbreviation 
int vlan 10

5、 to vlan To configure IP Address and subnet mask ( What to use vlan They all need to be configured )( Need to enter into vlan Set in the )

Be careful : This switch is a layer 3 switch , His vlanIP The addresses are those pc Gateway of computer .

# to vlan To configure 1.1.1.254 The network segment IP Address 
ip address 1.1.1.254 255.255.255.0

# Abbreviation :
ip add 1.1.1.254 24

  Implementation steps :

 

原网站

版权声明
本文为[Python Pegasus]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042010439752.html