ensp 路由表_华为模拟器ensp——静态路由实验

本文档通过华为网络模拟器ENSP演示了如何在交换机上配置静态路由,包括在lsw2、lsw3和核心交换机lsw1上设置不同子网的静态路由,以实现网络间的通信。
摘要由CSDN通过智能技术生成

交换机lsw2:

vlan 101

interface Vlanif1

ip address 10.13.45.254 255.255.255.128

interface Vlanif101

ip address 10.15.45.26 255.255.255.252

interface Ethernet0/0/2

port link-type trunk

port trunk pvid vlan 101

port trunk allow-pass vlan 101

ip route-static 10.15.45.0 255.255.255.0 10.15.45.25

ip route-static 59.211.100.0 255.255.255.0 10.15.45.25

ip route-static 221.7.100.0 255.255.255.128 10.15.45.25

交换机lsw3:

vlan 100

interface Vlanif1

ip address 10.14.100.126 255.255.255.128

interface Vlanif100

ip address 10.15.45.29 255.255.255.252

interface Ethernet0/0/1

port link-type trunk

port trunk pvid vlan 100

port trunk allow-pass vlan 100

ip route-static 10.15.45.0 255.255.255.0 10.15.45.30

ip route-static 59.211.100.0 255.255.255.0 10.15.45.30

ip route-static 221.7.100.0 255.255.255.128 10.15.45.30

核心交换机lsw1:

undo info-center enable

vlan batch 100 to 103

interface Vlanif1

interface Vlanif100

ip address 10.15.45.30 255.255.255.252

interface Vlanif101

ip address 10.15.45.25 255.255.255.252

interface Vlanif102

ip address 10.15.45.21 255.255.255.252

interface Vlanif103

ip address 10.15.45.33 255.255.255.252

interface GigabitEthernet0/0/1

port link-type trunk

port trunk pvid vlan 101

port trunk allow-pass vlan 101

interface GigabitEthernet0/0/2

port link-type trunk

port trunk pvid vlan 100

port trunk allow-pass vlan 100

interface GigabitEthernet0/0/3

port link-type trunk

port trunk pvid vlan 102

port trunk allow-pass vlan 102

interface GigabitEthernet0/0/4

port link-type trunk

port trunk pvid vlan 103

port trunk allow-pass vlan 103

ip route-static 10.13.45.128 255.255.255.128 10.15.45.26

ip route-static 10.14.100.0 255.255.255.128 10.15.45.29

ip route-static 211.7.100.0 255.255.255.128 10.15.45.22

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值