HCIP静态路由

1.分配网段

 

 2.配置

AR7

<Huawei>
<Huawei>sys
[Huawei]sys R7
[R7]interface GigabitEthernet 0/0/0
[R7-GigabitEthernet0/0/0]ip address 192.168.1.18 28
[R7-GigabitEthernet0/0/0]q
[R7]interface GigabitEthernet 0/0/1
[R7-GigabitEthernet0/0/1]ip address 192.168.1.49 28
[R7-GigabitEthernet0/0/1]q
[R7]ip route-static 192.168.1.0 28 192.168.1.17
[R7]ip route-static 192.168.1.32 28 192.168.1.17
[R7]ip route-static 192.168.1.128 28 192.168.1.17
[R7]ip route-static 192.168.1.144 28 192.168.1.17
[R7]ip route-static 192.168.1.64 28 192.168.1.50
[R7]ip route-static 192.168.1.128 28 192.168.1.50
[R7]ip route-static 192.168.1.144 28 192.168.1.50
[R7]ip route-static 192.168.1.80 28 192.168.1.50
[R7]ip route-static 192.168.1.96 28 192.168.1.50
[R7]ip route-static 192.168.1.112 28 192.168.1.50

 

<Huawei>
<Huawei>sys
[Huawei]sys R7
[R7]interface GigabitEthernet 0/0/0
[R7-GigabitEthernet0/0/0]ip address 192.168.1.18 28
[R7-GigabitEthernet0/0/0]q
[R7]interface GigabitEthernet 0/0/1
[R7-GigabitEthernet0/0/1]ip address 192.168.1.49 28
[R7-GigabitEthernet0/0/1]q
[R7]ip route-static 192.168.1.0 28 192.168.1.17
[R7]ip route-static 192.168.1.32 28 192.168.1.17
[R7]ip route-static 192.168.1.128 28 192.168.1.17
[R7]ip route-static 192.168.1.144 28 192.168.1.17
[R7]ip route-static 192.168.1.64 28 192.168.1.50
[R7]ip route-static 192.168.1.128 28 192.168.1.50
[R7]ip route-static 192.168.1.144 28 192.168.1.50
[R7]ip route-static 192.168.1.80 28 192.168.1.50
[R7]ip route-static 192.168.1.96 28 192.168.1.50
[R7]ip route-static 192.168.1.112 28 192.168.1.50

 

AR8


<Huawei>
<Huawei>sys
[Huawei]sys R8
[R8]interface LoopBack 0
[R8-LoopBack0]ip address 192.168.1.1 30
[R8-LoopBack0]q
[R8]interface LoopBack 1
[R8-LoopBack1]ip address 192.168.1.5 30
[R8-LoopBack1]q
[R8]interface LoopBack 2
[R8-LoopBack2]ip address 192.168.1.9 30
[R8-LoopBack2]q
[R8]interface GigabitEthernet 0/0/0
[R8-GigabitEthernet0/0/0]ip address 192.168.1.17 28
[R8-GigabitEthernet0/0/0]q
[R8]interface GigabitEthernet 0/0/1
[R8-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[R8-GigabitEthernet0/0/1]q
[R8]ip route-static 192.168.1.48 28 192.168.1.18
[R8]ip route-static 192.168.1.80 28 192.168.1.18
[R8]ip route-static 192.168.1.96 28 192.168.1.18
[R8]ip route-static 192.168.1.112 28 192.168.1.18
[R8]ip route-static 192.168.1.64 28 192.168.1.34
[R8]ip route-static 192.168.1.80 28 192.168.1.34
[R8]ip route-static 192.168.1.96 28 192.168.1.34
[R8]ip route-static 192.168.1.112 28 192.168.1.34
[R8]ip route-static 192.168.1.128 28 192.168.1.34
[R8]ip route-static 192.168.1.144 28 192.168.1.34
[R8]

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30

在这里插入图片描述
AR9
————————————————
版权声明:本文为CSDN博主「芒果?十一」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_64183819/article/details/131814480

  
AR8


<Huawei>
<Huawei>sys
[Huawei]sys R8
[R8]interface LoopBack 0
[R8-LoopBack0]ip address 192.168.1.1 30
[R8-LoopBack0]q
[R8]interface LoopBack 1
[R8-LoopBack1]ip address 192.168.1.5 30
[R8-LoopBack1]q
[R8]interface LoopBack 2
[R8-LoopBack2]ip address 192.168.1.9 30
[R8-LoopBack2]q
[R8]interface GigabitEthernet 0/0/0
[R8-GigabitEthernet0/0/0]ip address 192.168.1.17 28
[R8-GigabitEthernet0/0/0]q
[R8]interface GigabitEthernet 0/0/1
[R8-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[R8-GigabitEthernet0/0/1]q
[R8]ip route-static 192.168.1.48 28 192.168.1.18
[R8]ip route-static 192.168.1.80 28 192.168.1.18
[R8]ip route-static 192.168.1.96 28 192.168.1.18
[R8]ip route-static 192.168.1.112 28 192.168.1.18
[R8]ip route-static 192.168.1.64 28 192.168.1.34
[R8]ip route-static 192.168.1.80 28 192.168.1.34
[R8]ip route-static 192.168.1.96 28 192.168.1.34
[R8]ip route-static 192.168.1.112 28 192.168.1.34
[R8]ip route-static 192.168.1.128 28 192.168.1.34
[R8]ip route-static 192.168.1.144 28 192.168.1.34
[R8]

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30

在这里插入图片描述
AR9
————————————————
版权声明:本文为CSDN博主「芒果?十一」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_64183819/article/details/131814480

AR8


<Huawei>
<Huawei>sys
[Huawei]sys R8
[R8]interface LoopBack 0
[R8-LoopBack0]ip address 192.168.1.1 30
[R8-LoopBack0]q
[R8]interface LoopBack 1
[R8-LoopBack1]ip address 192.168.1.5 30
[R8-LoopBack1]q
[R8]interface LoopBack 2
[R8-LoopBack2]ip address 192.168.1.9 30
[R8-LoopBack2]q
[R8]interface GigabitEthernet 0/0/0
[R8-GigabitEthernet0/0/0]ip address 192.168.1.17 28
[R8-GigabitEthernet0/0/0]q
[R8]interface GigabitEthernet 0/0/1
[R8-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[R8-GigabitEthernet0/0/1]q
[R8]ip route-static 192.168.1.48 28 192.168.1.18
[R8]ip route-static 192.168.1.80 28 192.168.1.18
[R8]ip route-static 192.168.1.96 28 192.168.1.18
[R8]ip route-static 192.168.1.112 28 192.168.1.18
[R8]ip route-static 192.168.1.64 28 192.168.1.34
[R8]ip route-static 192.168.1.80 28 192.168.1.34
[R8]ip route-static 192.168.1.96 28 192.168.1.34
[R8]ip route-static 192.168.1.112 28 192.168.1.34
[R8]ip route-static 192.168.1.128 28 192.168.1.34
[R8]ip route-static 192.168.1.144 28 192.168.1.34
[R8]

 

 

<Huawei>
<Huawei>sys
[Huawei]sys R9
[R9]interface GigabitEthernet 0/0/0
[R9-GigabitEthernet0/0/0]ip address 192.168.1.50 28
[R9-GigabitEthernet0/0/0]q
[R9]interface GigabitEthernet 0/0/1
[R9-GigabitEthernet0/0/1]ip address 192.168.1.66 28
[R9-GigabitEthernet0/0/1]q
[R9]interface GigabitEthernet 0/0/2
[R9-GigabitEthernet0/0/2]ip address 192.168.1.81 28
[R9-GigabitEthernet0/0/2]q
[R9]interface GigabitEthernet 4/0/0
[R9-GigabitEthernet4/0/0]ip address 192.168.1.97 28
[R9-GigabitEthernet4/0/0]q
[R9]ip route-static 192.168.1.112 28 192.168.1.82
[R9]ip route-static 192.168.1.112 28 192.168.1.98
[R9]ip route-static 192.168.1.16 28 192.168.1.49
[R9]ip route-static 192.168.1.0 28 192.168.1.49
[R9]ip route-static 192.168.1.0 28 192.168.1.65
[R9]ip route-static 192.168.1.32 28 192.168.1.65
[R9]ip route-static 192.168.1.128 28 192.168.1.65
[R9]ip route-static 192.168.1.144 28 192.168.1.6
[R9]

 

 Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R10
[R10]interface GigabitEthernet 0/0/0
[R10-GigabitEthernet0/0/0]ip address 192.168.1.65 28
[R10-GigabitEthernet0/0/0]q
[R10]interface GigabitEthernet 0/0/1
[R10-GigabitEthernet0/0/1]ip address 192.168.1.34 28
[R10-GigabitEthernet0/0/1]q
[R10]interface GigabitEthernet 0/0/2.1
[R10-GigabitEthernet0/0/2.1]ip address 192.168.1.129 28
[R10-GigabitEthernet0/0/2.1]dot1q termination vid 2
[R10-GigabitEthernet0/0/2.1]arp broadcast enable
[R10-GigabitEthernet0/0/2.1]q
[R10]interface GigabitEthernet 0/0/2.2
[R10-GigabitEthernet0/0/2.2]ip address 192.168.1.145 28
[R10-GigabitEthernet0/0/2.2]dot1q termination vid 3.
[R10-GigabitEthernet0/0/2.2]arp broadcast enable
[R10-GigabitEthernet0/0/2.2]q
[R10]ip route-static 192.168.1.0 28 192.168.1.33
[R10]ip route-static 192.168.1.16 28 192.168.1.33
[R10]ip route-static 192.168.1.48 28 192.168.1.66
[R10]ip route-static 192.168.1.80 28 192.168.1.66
[R10]ip route-static 192.168.1.96 28 192.168.1.66
[R10]ip route-static 192.168.1.112 28 192.168.1.66
[R10]

 <Huawei>
<Huawei>sys
[Huawei]sys R11
[R11]interface GigabitEthernet 0/0/0
[R11-GigabitEthernet0/0/0]ip address 192.168.1.82 28
[R11-GigabitEthernet0/0/0]q
[R11]interface GigabitEthernet 0/0/1
[R11-GigabitEthernet0/0/1]ip address 192.168.1.98 28
[R11-GigabitEthernet0/0/1]q
[R11]interface GigabitEthernet 0/0/2
[R11-GigabitEthernet0/0/2]ip address 192.168.1.113 28
[R11-GigabitEthernet0/0/2]q
[R11]ip route-static 192.168.1.48 28 192.168.1.97
[R11]ip route-static 192.168.1.16 28 192.168.1.97
[R11]ip route-static 192.168.1.0 28 192.168.1.97
[R11]ip route-static 192.168.1.64 28 192.168.1.97
[R11]ip route-static 192.168.1.32 28 192.168.1.97
[R11]ip route-static 192.168.1.128 28 192.168.1.97
[R11]ip route-static 192.168.1.144 28 192.168.1.97
[R11]ip route-static 192.168.1.144 28 192.168.1.81
[R11]ip route-static 192.168.1.128 28 192.168.1.81
[R11]ip route-static 192.168.1.64 28 192.168.1.81
[R11]ip route-static 192.168.1.48 28 192.168.1.81
[R11]ip route-static 192.168.1.32 28 192.168.1.81
[R11]ip route-static 192.168.1.16 28 192.168.1.81
[R11]ip route-static 192.168.1.0 28 192.168.1.81
[R11]

 Huawei>
<Huawei>sys
[Huawei]sys R12
[R12]interface GigabitEthernet 0/0/0
[R12-GigabitEthernet0/0/0]ip address 192.168.1.114 28
[R12-GigabitEthernet0/0/0]q
[R12]ip route-static 192.168.1.0 28 192.168.1.113
[R12]ip route-static 192.168.1.16 28 192.168.1.113
[R12]ip route-static 192.168.1.32 28 192.168.1.113
[R12]ip route-static 192.168.1.48 28 192.168.1.113
[R12]ip route-static 192.168.1.64 28 192.168.1.113
[R12]ip route-static 192.168.1.80 28 192.168.1.113
[R12]ip route-static 192.168.1.96 28 192.168.1.113
[R12]ip route-static 192.168.1.128 28 192.168.1.113
[R12]ip route-static 192.168.1.144 28 192.168.1.11

 

LSW1

<Huawei>
<Huawei>sys
[Huawei]sys SW1
[SW1]vlan 2
[SW1-vlan2]q
[SW1]vlan 3
[SW1-vlan3]q
[SW1]interface Ethernet 0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 2
[SW1-Ethernet0/0/2]q
[SW1]interface Ethernet 0/0/3
[SW1-Ethernet0/0/3]port link-type access
[SW1-Ethernet0/0/3]port default vlan 3
[SW1-Ethernet0/0/3]q
[SW1]interface Ethernet 0/0/1
[SW1-Ethernet0/0/1]port link-type trunk
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 2
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 3
[SW1-Ethernet0/0/1]q
[SW1]interface Ethernet 0/0/4
[SW1-Ethernet0/0/4]port link-type trunk
[SW1-Ethernet0/0/4]port trunk allow-pass vlan 2
[SW1-Ethernet0/0/4]port trunk allow-pass vlan 3
[SW1-Ethernet0/0/4]q
[SW1]

 

LSW2

<Huawei>
<Huawei>sys
[Huawei]sys SW2
[SW2]vlan 2
[SW2-vlan2]q
[SW2]vlan 3
[SW2-vlan3]q
[SW2]interface Ethernet 0/0/2
[SW2-Ethernet0/0/2]port link-type access
[SW2-Ethernet0/0/2]port default vlan 2
[SW2-Ethernet0/0/2]q
[SW2]interface Ethernet 0/0/3
[SW2-Ethernet0/0/3]port link-type access
[SW2-Ethernet0/0/3]port default vlan 3
[SW2-Ethernet0/0/3]q
[SW2]interface Ethernet 0/0/1
[SW2-Ethernet0/0/1]port link-type trunk
[SW2-Ethernet0/0/1]port trunk allow-pass vlan 2
[SW2-Ethernet0/0/1]port trunk allow-pass vlan 3
[SW2-Ethernet0/0/1]q
[SW2]

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值