华为路由交换集成

**

华为路由交换集成

**

  1. 规划网段。
    

华为路由交换集成_第1张图片

先配置交换机部份。
Lsw1
sys
vlan 10
quit
interface e0/0/1
port link-type access
port default vlan 10
quit
interface e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
quit
save
lsw2
sys
vlan 20
quit
interface e0/0/1
port link-type access
port default vlan 20
quit
interface e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
quit
save
Lsw3
lsw2
sys
vlan batch 10 20
interface g0/0/1
port link-type trunk
port trunk allow-pass vlan all
quit
interface g0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface g0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
quit
save
Lsw4
lsw2
sys
vlan batch 10 20
interface g0/0/1
port link-type trunk
port trunk allow-pass vlan all
quit
interface vlan 10
ip address 192.168.10.1 255.255.255.0
quit
interface vlan 20
ip address 192.168.20.1 255.255.255.0
quit
quit
save
路由器部份(所有节点IP地址)。
Lsw4(如何给三层交换机配置IP地址)
方式一:
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]undo portswitch (将二层接口配置三层接口,前提这种型的交换要要支持三层功能才可以)
[Huawei-GigabitEthernet0/0/2]ip address 192.168.30.1 255.255.255.0
方式二:
[Huawei]
[Huawei]vlan 100
[Huawei-vlan100]
[Huawei-vlan100]quit
[Huawei]interface vlan 100
[Huawei-Vlanif100]ip address 192.168.30.1 255.255.255.0
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 100
AR1
sys
interface g0/0/0
undo shutdown
ip address 192.168.30.2 255.255.255.0
quit
interface g0/0/1
undo shutdown
ip address 192.168.40.1 255.255.255.0
quit
quit
save
AR2
sys
interface g0/0/1
undo shutdown
ip address 192.168.50.1 255.255.255.0
quit
interface g0/0/0
undo shutdown
ip address 192.168.40.2 255.255.255.0
quit
quit
save
所有三层设备配置路由协议:

Lsw4

[Huawei]

[Huawei]rip 1

[Huawei-rip-1]network 192.168.10.0

[Huawei-rip-1]network 192.168.20.0

[Huawei-rip-1]network 192.168.30.0

Ar1

sys

[Huawei]rip 1

[Huawei-rip-1]network 192.168.30.0

[Huawei-rip-1]network 192.168.40.0

Ar2

[Huawei]

[Huawei]rip 1

[Huawei-rip-1]network 192.168.40.0

[Huawei-rip-1]network 192.168.50.0

你可能感兴趣的:(路由协议)