华为多交换机trunk.rip应用全网互通.以及搭建服务器
使用eNSP搭建实验环境一.pc机192.168.10.254 网关192.168.10.254 以此为论推
二:sw7配置(端口加vlan )
vlan batch 10 20
int eth0/0/3
Huawei-Ethernet0/0/3]undo shutdown
port link-type access
port default valn 10
int eth 0/0/2
port link-type access
port default valn 20
int eth 0/0/1
port link-type trunk
port trunk allow-pass valn all
三:sw8配置
vlan 10
int eth0/0/2
undo shutdown
port link-type access
port default vlan 10
int eth0/0/1
port link-type trunk
port trunk allow-pass vlan all
三:sw10配置
vlan 40
int eth0/0/2
port link-type a
port link-type access
port default vlan 40
undo shutdown
Info: Interface Ethernet0/0/2 is not shutdown.
q
int eth0/0/3
undo shutdown
port link-type access
port default vlan 40
undo shutdown
port link-type access
port default vlan 40
int eth0/0/1
port link-type trunk
port trunk allow-pass vlan all
undo shutdown
四,sw9配置(sw9.10trunk)
vlan batch 30 40 50
Info: This operation may take a few seconds. Please wait for a moment...done.
int vlan 30
undo shutdown
Info: Interface Vlanif30 is not shutdown.
ip add 192.168.30.254 24
q
int vlan 50
ip add 192.168.50.2 24
q
int vlan 40
undo shutdown
ip add 192.168.40.254 24
q
int g0/0/1
undo shutdown
port link-type trunk
port trunk allow-pass vlan all
q
int g0/0/2
port link-type trunk
port trunk allow-pass vlan all
undo shutdown
q
rip
version 2
network 192.168.30.0
network 192.168.40.0
network 192.168.50.0
五,Sw6配置(sw6.9、6.8、6.7trunk)
vlan batch 10 20 30 50
undo shutdown
port link-type trunk
port trunk allow-pass vlan all
q
int g0/0/4
port link-type trunk
port trunk allow-pass vlan all
undo shutdown
q
int vlan 10
ip add 192.168.10.254 24
undo shutdown
q
int vlan 20
und shutdown
Info: Interface Vlanif20 is not shutdown.
ip add 192.168.20.254 24
q
int g0/0/5
port link-type access
port link-type trunk
port trunk allow-pass vlan all
q
undo shutdown
int g0/0/1
port link-type access
port default vlan 30
undo shutdown
q
int g0/0/2
undo shutdown
port link-type access
port default vlan 30
int vlan 50
undo shutdown
ip add 192.168.50.1 255.255.255.0
rip
ver
version 2
network 192.168.10.0
network 192.168.20.0
network 192.168.30.0
network 192.168.50.0
六.全网互通
页:
[1]