IP feelings and experiences 21

  1. How to configure single-arm routing

     

    First, the basic topology configuration

    A main router, two switches, two sets of test router, the router acts as a computer use test

    Huawei eNSP-arm routing configuration test
  2.  

    Second, configure the interface IP address

    R1 interface: [R1-GigabitEthernet0 / 0/1] ip address 10.0.2.2 255.255.255.0 

    R2 interface: [R2-GigabitEthernet0 / 0/2] ip address 10.0.3.2 255.255.255.0

    R3 interfaces: interface GigabitEthernet0 / 0/1

                                 ip address 10.0.2.1 255.255.255.0 

                     interface GigabitEthernet0/0/2

                                 ip address 10.0.3.1 255.255.255.0 

    Huawei eNSP-arm routing configuration test
    Huawei eNSP-arm routing configuration test
  3.  

    Third, S2 is closed G0 / 0/4 interfaces and S1, S2 of the G0 / 0/09 Interface added VLAN3

    [S2]interface GigabitEthernet 0/0/4 

    [S2-GigabitEthernet0/0/4]shutdown 

    [S2]interface GigabitEthernet 0/0/9 

    [S2-GigabitEthernet0/0/9]port link-type access 

    [S2-GigabitEthernet0/0/9]port default vlan 3 

    [S1]interface GigabitEthernet 0/0/9 

    [S1-GigabitEthernet0/0/9]port link-type access 

    [S1-GigabitEthernet0/0/9]port default vlan 3 

    Huawei eNSP-arm routing configuration test
  4.  

    Four, S1, G0 / 0/4 TRUNK mode into the interface, allows VLAN2, VLAN3

    [S1]interface GigabitEthernet 0/0/4 

    [S1-GigabitEthernet0/0/4]port default vlan 1 

    [S1-GigabitEthernet0/0/4]port link-type trunk 

    [S1-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 3 

    Huawei eNSP-arm routing configuration test
    Huawei eNSP-arm routing configuration test
  5.  

    五、在R3上的G0/0/1接口上配置子接口,同时在子接口配置ip地址,把接口配置成Dot1q,终结以太网接子接口

    [R4]inter GigabitEthernet 0/0/1.2 

    [R4-GigabitEthernet0/0/1.2]control-vid 20 dot1q-termination 

    [R4-GigabitEthernet0/0/1.2]dot1q termination vid 2 

    [R4-GigabitEthernet0/0/1.2]arp broadcast enable 

    [R4-GigabitEthernet0/0/1.2]ip address 10.0.20.1 24 

    [R4-GigabitEthernet0/0/1.2]inter GigabitEthernet 0/0/1.3 

    [R4-GigabitEthernet0/0/1.3]control-vid 30 dot1q-termination 

    [R4-GigabitEthernet0/0/1.3]dot1q termination vid 3 

    [R4-GigabitEthernet0/0/1.3]arp broadcast enable 

    [R4-GigabitEthernet0/0/1.3]ip address 10.0.30.1 24

    Huawei eNSP-arm routing configuration test
    Huawei eNSP-arm routing configuration test
  6.  

    六、更改R1、R2的IP地址和网关

    [R1]inter GigabitEthernet 0/0/1 

    [R1-GigabitEthernet0/0/1]ip address 10.0.20.2 24 

    [R1-GigabitEthernet0/0/1]quit 

    [R1]undo ip route-static 0.0.0.0 0 10.0.2.1 

    [R1]ip route-static 0.0.0.0 0 10.0.20.1 

    [R2]interface GigabitEthernet 0/0/2 

    [R2-GigabitEthernet0/0/2]ip address 10.0.30.2 24 

    [R2-GigabitEthernet0/0/2]quit 

    [R2]undo ip route-static 0.0.0.0 0 10.0.3.1 

    [R2]ip route-static 0.0.0.0 0 10.0.30.1

    Huawei eNSP-arm routing configuration test
    Huawei eNSP-arm routing configuration test
  7.  

    Seven verify results

    [R1]ping -c 1 10.0.30.2 

    PING 10.0.30.2: 56 data bytes, press CTRL_C to break 

    Reply from 10.0.30.2: bytes=56 Sequence=1 ttl=254 time=3 ms 

    --- 10.0.30.2 ping statistics --- 

    1 packet(s) transmitted 

    1 packet(s) received 

    0.00% packet loss 

    round-trip min/avg/max = 3/3/3 ms

    Huawei eNSP-arm routing configuration test

Guess you like

Origin www.cnblogs.com/zx99/p/11931496.html