記事のディレクトリ
まず、実験環境
ENSP V100R003C00SPC100バージョン
第二に、実験的なトポロジ
第三に、実験の必要性
ネットワーク全体のインターワーキング
第四に、実験手順
R1の設定PC1、PC2、PC3、PC4、SW1、SW2、SW3、R1 -------- --------配置されたループバックアドレスの検証テスト要件
PC1の設定
PC2の設定
セットPC3
PC4の設定
LSW1スイッチの設定
<LSW1>sys
Enter system view, return user view with Ctrl+Z.
[LSW1] undo info-center enable #关闭华为信息提示
Info: Information center is disabled.
[LSW1]vlan b 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]int e0/0/1
[LSW1-Ethernet0/0/1]p l a
[LSW1-Ethernet0/0/1]p d v 10 ##将接口加入vlan
[LSW1-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[LSW1-Ethernet0/0/1]int e0/0/2
[LSW1-Ethernet0/0/2]p l a
[LSW1-Ethernet0/0/2]p d v 20
[LSW1-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[LSW1-Ethernet0/0/2]int e0/0/3
[LSW1-Ethernet0/0/3]p l t
[LSW1-Ethernet0/0/3]p t a v a
[LSW1-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.
LSW2スイッチの設定
[LSW2]undo info-center enable #关闭华为信息提示
Info: Information center is disabled.
[LSW2]int e0/0/1 ##将接口加入vlan
[LSW2-Ethernet0/0/1]p l t
[LSW2-Ethernet0/0/1]p t a v a
[LSW2-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[LSW2-Ethernet0/0/1]int e0/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 e0/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]
LSW3 3つのスイッチセット
[LSW3]undo info-center enable
[LSW1]int g0/0/1
[LSW3-GigabitEthernet0/0/1]p l t #设置接口链路模式
[LSW3-GigabitEthernet0/0/1]p t a v a
[LSW3-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[LSW3]vlan b 10 20 1000 ##添加vlan
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW3]int vlanif10 #配置虚拟接口
[LSW3-Vlanif10]ip add 192.168.10.1 24
[LSW3-Vlanif10]int vlanif20
[LSW3-Vlanif20]ip add 192.168.20.1 24
[LSW3-Vlanif20]int vlanif 1000
[LSW3-Vlanif1000]ip add 11.0.0.1 30
[LSW3-Vlanif1000]int g0/0/2
[LSW3-GigabitEthernet0/0/2]p l a
[LSW3-GigabitEthernet0/0/2]p d v 1000
[LSW3-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[LSW3-GigabitEthernet0/0/2]q
[LSW3]ip rou
[LSW3]ip route
[LSW3]ip route-static 0.0.0.0 0.0.0.0 11.0.0.2 #向上配置默认路由出去
R1の設定
[R1]undo info-center enable ###关闭华为信息提示
Info: Information center is disabled.
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 11.0.0.2 30 ###接口配置IP地址
[R1-GigabitEthernet0/0/0]un sh
[R1]int loo 0 ###配置回环地址测试
[R1-LoopBack0]ip add 1.1.1.1 32
[R1-LoopBack0]q
[R1]ip route-static 192.168.10.0 24 11.0.0.1 ###向下配置静态路由
[R1]ip route-static 192.168.20.0 24 11.0.0.1
第五に、検証要件
VIノート
ラベルのないデータのうちアクセスのための3つのスイッチの上側の口。