Huawei vlan division, single-arm routing and Static Routing

Source: Internet
Author: User

Huawei vlan division, single-arm routing and Static Routing

Huawei vlan division, single-arm routing, and Static Routing allow all members to access the Internet
Huawei topology: IP address planning! Assign IP addresses to three computers
VLAN Division:

<Huawei> sy enters View Mode
[Huawei] un in en close message center
[Huawei] Change the switch name in sysname SW1
[SW1] inter vlan 1 enters the switch
[SW1-Vlanif1] ip address 192.168.0.10 24 with ip address
[SW1-Vlanif1] un shut Enabled
[SW1] vlan 2
[SW1-vlan2] vlan 3
[SW1-vlan3] vlan 4
[SW1] inter e0/0/2 inbound interface vlan Division
[SW1-Ethernet0/0/2] port link-type access
[SW1-Ethernet0/0/2] port default vlan 3
[SW1-Ethernet0/0/2] inter e0/0/1
[SW1-Ethernet0/0/1] port link-type access
[SW1-Ethernet0/0/1] port default vlan 2
[SW1-Ethernet0/0/1] inter e0/0/3
[SW1-Ethernet0/0/3] port link-type access
[SW1-Ethernet0/0/3] port default vlan 4
[SW1-Ethernet0/0/3] inter g0/0/1
[SW1-GigabitEthernet0/0/1] port link-type trunk set to medium port
[SW1-GigabitEthernet0/0/1] port trunk allow-pass vlan all
Set to pass all members

Single-arm routing:
<Huawei> sy enters View Mode
[Huawei] un in en close message center
[Huawei] Change the switch name in sysname R1
[R1] inter g0/0/0
[R1-GigabitEthernet0/0/0] un shut Enabled
[R1-GigabitEthernet0/0/0] inter g0/0/0.1 entering sub Interface
[R1-GigabitEthernet0/0/0.1] dot1q termination vid 1
[R1-GigabitEthernet0/0/0.1] ip address 192.168.0.1 24
[R1-GigabitEthernet0/0/0.1] un shut
[R1-GigabitEthernet0/0/0.1] inter g0/0/0.2
[R1-GigabitEthernet0/0/0.2] dot1q termination vid 2
[R1-GigabitEthernet0/0/0.2] ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0.2] un shut
[R1-GigabitEthernet0/0/0.2] inter g0/0/0.3
[R1-GigabitEthernet0/0/0.3] dot1q termination vid 3
[R1-GigabitEthernet0/0/0.3] ip address 192.168.2.10 24
[R1-GigabitEthernet0/0/0.3] un shut
[R1-GigabitEthernet0/0/0.3] inter g0/0/0.4
[R1-GigabitEthernet0/0/0.4] dot1q termination vid 4
[R1-GigabitEthernet0/0/0.4] ip address 192.168.3.10 24
[R1-GigabitEthernet0/0/0.4] un shut
[R1-GigabitEthernet0/0/0.4] inter g0/0/1
[R1-GigabitEthernet0/0/1] ip address 202.106.1.1 30 configure ip address
[R1-GigabitEthernet0/0/1] un shut
<Huawei> sys
[Huawei] un in en
[Huawei] sysname R2
[R2] inter g0/0/0
[R2-GigabitEthernet0/0/0] ip address 202.106.1.2 30
[R2-GigabitEthernet0/0/0] un shut
[R2-GigabitEthernet0/0/0] inter g0/0/1
[R2-GigabitEthernet0/0/1] ip address 202.106.1.5 30
[R2-GigabitEthernet0/0/1] un shut

<Huawei> sy
[Huawei] un in en
[Huawei] sysname R3
[R3] inter g0/0/0
[R3-GigabitEthernet0/0/0] ip address 202.106.1.6 30
[R3-GigabitEthernet0/0/0] un shut


Add a static route:
[R2] ip route-static 192.168.0.0 255.255.252.0 202.106.1.1 and then test the result
[R3] ip route-static 202.106.1.0 30 202.106.1.5
[R3] ip route-static 192.168.0.0 22 202.106.1.5
[R1] ip route-static 202.106.1.4 30 202.106.1.2
Test results !!!!!! All connected!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.