华为一般企业网核心部分-排错-练习题-适合老手
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为一般企业网核心部分-排错-练习题-适合老手相关的知识,希望对你有一定的参考价值。
LSW2
system-view
vlan batch 10 20 30
int e 0/0/4
port link-type access
port default vlan 10
quit
int e 0/0/3
port link-type access
port default vlan 20
quit
int e 0/0/2
port link-type access
port default vlan 30
quit
int e 0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30
quit
quit
save
LSW3
system-view
vlan batch 10 20 30
int e 0/0/4
port link-type access
port default vlan 10
quit
int e 0/0/3
port link-type access
port default vlan 20
quit
int e 0/0/2
port link-type access
port default vlan 30
quit
int e 0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30
quit
quit
save
LSW4
system-view
vlan batch 10 20 30
int e 0/0/4
port link-type access
port default vlan 10
quit
int e 0/0/3
port link-type access
port default vlan 20
quit
int e 0/0/2
port link-type access
port default vlan 30
quit
int e 0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30
quit
quit
save
core SW
system-view
vlan batch 10 20 30 40
int vlan 10
ip address 192.168.10.254 255.255.255.0
quit
int vlan 20
ip address 192.168.20.254 255.255.255.0
quit
int vlan 30
ip address 192.168.30.254 255.255.255.0
quit
int vlan 40
ip address 10.0.0.2.254 255.255.255.252
quit
int gi 0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20 30
quit
int gi 0/0/3
port link-type trunk
port trunk allow-pass vlan 10 20 30
quit
int gi 0/0/4
port link-type trunk
port trunk allow-pass vlan 10 20 30
quit
int gi 0/0/1
port link-type access
port default vlan 40
quit
ip route-static 172.16.1.0 255,255,255,0 10.0.0.1
quit
quit
save
LSW6-RT
sys
vlan batch 40 50
quit
int vlan 40
ip add 10.0.0.1 255.255.255.252
quit
int vlan 50
ip add 172.16.1.1 255.255.255.0
quit
ip route-static 192.168.10.0 255,255,255,0 10.0.0.2
ip route-static 192.168.20.0 255,255,255,0 10.0.0.2
ip route-static 192.168.30.0 255,255,255,0 10.0.0.2
quit
quit
save
以上是关于华为一般企业网核心部分-排错-练习题-适合老手的主要内容,如果未能解决你的问题,请参考以下文章