实验:华为三层交换机实验

华为的三层交换机不可以在物理接口配置ip地址

三层交换机的上联口都要配置access口

在这里插入图片描述

LSW2

The device is running!

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname LSW2
[LSW2]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW2]int e 0/0/2
[LSW2-Ethernet0/0/2]p l a
[LSW2-Ethernet0/0/2]p d v 10
[LSW2-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[LSW2-Ethernet0/0/2]int e 0/0/3
[LSW2-Ethernet0/0/3]p l a
[LSW2-Ethernet0/0/3]p d v 20
[LSW2-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.
[LSW2-Ethernet0/0/3]int e 0/0/1
[LSW2-Ethernet0/0/1]p l t
[LSW2-Ethernet0/0/1]p t a v 10 20
[LSW2-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[LSW2]dis vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------
VID  Type    Ports                                                          
--------------------------------------------------------------------------------                                    
10   common  UT:Eth0/0/2(U)                                                     

             TG:Eth0/0/1(U)                                                     

20   common  UT:Eth0/0/3(U)                                                     

             TG:Eth0/0/1(U)                                                    
VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------

1    enable  default       enable  disable    VLAN 0001                         
10   enable  default       enable  disable    VLAN 0010                         
20   enable  default       enable  disable    VLAN 0020                         
[LSW2]int g 0/0/1
[LSW2-GigabitEthernet0/0/1]p l t
[LSW2-GigabitEthernet0/0/1]p t a v 10 20
[LSW2-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[LSW2-GigabitEthernet0/0/1]

LSW3

The device is running!

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname LSW3
[LSW3]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW3]int e 0/0/1
[LSW3-Ethernet0/0/1]p l t
[LSW3-Ethernet0/0/1]p t a v 10 20
[LSW3-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[LSW3-Ethernet0/0/1]int e 0/0/2
[LSW3-Ethernet0/0/2]p l a
[LSW3-Ethernet0/0/2]p d v 10
[LSW3-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[LSW3-Ethernet0/0/2]int e 0/0/3
[LSW3-Ethernet0/0/3]p l a
[LSW3-Ethernet0/0/3]p d v 20
[LSW3-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.

LSW1

The device is running!
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname LSW1
[LSW1]vlan bat 10 20 1000
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]int g 0/0/1
[LSW1-GigabitEthernet0/0/1]p l t
[LSW1-GigabitEthernet0/0/1]p t a v 10 20
[LSW1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[LSW1-GigabitEthernet0/0/1]int g 0/0/2
[LSW1-GigabitEthernet0/0/2]p l a
[LSW1-GigabitEthernet0/0/2]p d v 1000
[LSW1-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[LSW1-GigabitEthernet0/0/2]q
[LSW1]int Vlanif 10
[LSW1-Vlanif10]ip add 192.168.10.1 24
[LSW1-Vlanif10]un sh
Info: Interface Vlanif10 is not shutdown.
[LSW1-Vlanif10]q
[LSW1]int Vlanif 20
[LSW1-Vlanif20]ip add 192.168.20.1 24
[LSW1-Vlanif20]un sh
Info: Interface Vlanif20 is not shutdown.
[LSW1-Vlanif20]q
[LSW1]int Vlanif 1000
[LSW1-Vlanif1000]ip add 11.0.0.1 30
[LSW1-Vlanif1000]un sh
Info: Interface Vlanif1000 is not shutdown.
[LSW1-Vlanif1000]q
[LSW1]ip route-static 1.1.1.0 30 11.0.0.2

AR1

The device is running!
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname AR1
[AR1]int g 0/0/0
[AR1-GigabitEthernet0/0/0]ip add 11.0.0.2 30
[AR1-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[AR1-GigabitEthernet0/0/0]q
[AR1]int LoopBack 0
[AR1-LoopBack0]ip add 1.1.1.1 30
[AR1-LoopBack0]q
[AR1]ip route-static 192.168.10.0 24 11.0.0.1
[AR1]ip route-static 192.168.20.0 24 11.0.0.1

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

发布了87 篇原创文章 · 获赞 26 · 访问量 4540

猜你喜欢

转载自blog.csdn.net/Lfwthotpt/article/details/103599397
今日推荐