ensp-----实验---三层交换

一.实验环境

  • ensp操作软件
  • 两台s3700交换机,作为二层设备
  • 一台s5700交换机,作为三层交换机
  • 一台Router,作为路由器

二.网络拓补

三.具体操作

LSW2的配置

<Huawei>
<Huawei>sys
[Huawei]sysname sw1
[sw1]un in en                  //关闭信息提示
Info: Information center is disabled.

//设置vlan10,配置接口access和trunk
[sw1]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]p l a
[sw1-Ethernet0/0/1]p d v 10
[sw1-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]p l a
[sw1-Ethernet0/0/2]p d v 20
[sw1-Ethernet0/0/2]int e0/0/3
[sw1-Ethernet0/0/3]p l t
[sw1-Ethernet0/0/3]p t a v a
[sw1-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.
[sw1-Ethernet0/0/3]int g0/0/1
[sw1-GigabitEthernet0/0/1]p l t
[sw1-GigabitEthernet0/0/1]p t a v a
[sw1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[sw1-GigabitEthernet0/0/1]q
[sw1] 

LSW3的配置

<Huawei>sys
[Huawei]sysname sw2
[sw2]un in en
Info: Information center is disabled.

#配置vlan和接口
[sw2]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw2]int e0/0/1
[sw2-Ethernet0/0/1]p l a
[sw2-Ethernet0/0/1]p d v 10
[sw2-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw2-Ethernet0/0/1]int e0/0/2
[sw2-Ethernet0/0/2]p l a
[sw2-Ethernet0/0/2]p d v 20
[sw2-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[sw2-Ethernet0/0/2]int e0/0/3
[sw2-Ethernet0/0/3]p l t
[sw2-Ethernet0/0/3]p t a v a
[sw2-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.
[sw2-Ethernet0/0/3]q


LSW1的配置

<Huawei>
<Huawei>sys
[Huawei]sysname RSW1
[RSW1]un in en
Info: Information center is disabled.

#配置接口
[RSW1]vlan bat 10 20 1000
Info: This operation may take a few seconds. Please wait for a moment...done.
[RSW1]int g0/0/1
[RSW1-GigabitEthernet0/0/1]p l t
[RSW1-GigabitEthernet0/0/1]p t a v 10 20
[RSW1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[RSW1-GigabitEthernet0/0/1]int g0/0/2
[RSW1-GigabitEthernet0/0/2]p l a
[RSW1-GigabitEthernet0/0/2]p d v 1000
[RSW1-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[RSW1-GigabitEthernet0/0/2]q

#配置物理子接口
[RSW1]int Vlanif 10
[RSW1-Vlanif10]ip add 192.168.10.1 24
[RSW1-Vlanif10]int Vlanif 20
[RSW1-Vlanif20]ip add 192.168.20.1 24
[RSW1-Vlanif20]int Vlanif 1000
[RSW1-Vlanif1000]ip add 11.0.0.1 30
[RSW1-Vlanif1000]q
#配置通向11.0.0.2方向的默认路由
[RSW1]ip route-static 0.0.0.0 0.0.0.0 11.0.0.2

R1的配置

<Huawei>sys

[Huawei]sysname R1

[R1]un in en
Info: Information center is disabled.

[R1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip add 11.0.0.2 30
[R1-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
#配置回环地址
[R1-GigabitEthernet0/0/2]int loo 0
[R1-LoopBack0]ip add 2.2.2.2 30
[R1-LoopBack0]q

#配置静态路由
[R1]ip route-static 192.168.0.0 16 11.0.0.1
发布了94 篇原创文章 · 获赞 108 · 访问量 6409

猜你喜欢

转载自blog.csdn.net/qq_42761527/article/details/103583022
今日推荐