how to configure huawei router-on-a-stick

5
How to Configure Huawei router-on-a-stick Requirements: The range on the host broadcast domain of communication can be reduced by VLAN configuration to the switch on the LAN. You can use a router that supports 802.1Q to realize interoperability of VLAN on the condition that part of the hosts need to communicate among VLAN while the switches doesn’t support the three-layer switch, which requires the establishment of a sub-interface on the Ethernet port, assignment of the IP address as the related VLAN gateway, and start 802.1Q at the same time. Networking: Connect E0 port of the router with uplink trunk port (24th ports) of the switch on the router, and divide 3 VLAN on switch downward port with several hosts. Configuration of the routers [Router] [Router]inter e0 [Router-Ethernet0]ip add 10.0.0.1 255.255.255.0 [Router-Ethernet0]inter e0.1 // Define E0.1 sub-interface [Router-Ethernet0.1]ip add 172.16.1.1 255.255.255.0 [Router-Ethernet0.1]vlan-type dot1q vid 1 //Specify the Ethernet sub-interfaces belonging to VLAN1, and this command is applied to the Ethernet sub-interface. Only this command is configured, the Ethernet sub-interface will be embedded VLAN tag in the Ethernet frame header according to the configuration of the VLAN ID number so that the switch port connected to the switch interface can deal with the received frame correctly only the command has been configured. [Router-Ethernet0.1]inter e0.2 // Define E0.2 sub-interface [Router-Ethernet0.2]ip add 172.16.2.1 255.255.255.0 [Router-Ethernet0.2]vlan-type dot1q vid 2 // Specify the Ethernet sub-interfaces belonging to VLAN2 [Router-Ethernet0.2]inter e0.3 // Define E0.3 sub-interface [Router-Ethernet0.3]ip add 172.16.3.1 255.255.255.0 1

Upload: elizabeth-rich

Post on 23-Nov-2015

187 views

Category:

Documents


11 download

DESCRIPTION

Leading Huawei networking products distributor-huanetwork.comHow to Configure Huawei Router-On-A-stick

TRANSCRIPT

How to configure Huawei switches

How to Configure Huawei router-on-a-stickRequirements: The range on the host broadcast domain of communication can be reduced by VLAN configuration to the switch on the LAN. You can use a router that supports 802.1Q to realize interoperability of VLAN on the condition that part of the hosts need to communicate among VLAN while the switches doesnt support the three-layer switch, which requires the establishment of a sub-interface on the Ethernet port, assignment of the IP address as the related VLAN gateway, and start 802.1Q at the same time.

Networking: Connect E0 port of the router with uplink trunk port (24th ports) of the switch on the router, and divide 3 VLAN on switch downward port with several hosts.

Configuration of the routers

[Router]

[Router]inter e0

[Router-Ethernet0]ip add 10.0.0.1 255.255.255.0

[Router-Ethernet0]inter e0.1 // Define E0.1 sub-interface[Router-Ethernet0.1]ip add 172.16.1.1 255.255.255.0

[Router-Ethernet0.1]vlan-type dot1q vid 1 //Specify the Ethernet sub-interfaces belonging to VLAN1, and this command is applied to the Ethernet sub-interface. Only this command is configured, the Ethernet sub-interface will be embedded VLAN tag in the Ethernet frame header according to the configuration of the VLAN ID number so that the switch port connected to the switch interface can deal with the received frame correctly only the command has been configured.

[Router-Ethernet0.1]inter e0.2 // Define E0.2 sub-interface[Router-Ethernet0.2]ip add 172.16.2.1 255.255.255.0

[Router-Ethernet0.2]vlan-type dot1q vid 2 // Specify the Ethernet sub-interfaces belonging to VLAN2

[Router-Ethernet0.2]inter e0.3 // Define E0.3 sub-interface[Router-Ethernet0.3]ip add 172.16.3.1 255.255.255.0

[Router-Ethernet0.3]vlan-type dot1q vid 3 // Specify the Ethernet sub-interfaces belonging VLAN3[Router-Ethernet0.3]inter e0

[Router-Ethernet0]undo shut

% Interface Ethernet0 is up

[Router-Ethernet0] //Connect the E0 port with the 24th port of S3026 with the network cable %19:46:32: Interface Ethernet0 changed state to UP

%19:46:32: Line protocol ip on interface Ethernet0, changed state to UP

%19:46:32: Line protocol ip on interface Ethernet0.1, changed state to UP

%19:46:32: Line protocol ip on interface Ethernet0.2, changed state to UP

%19:46:32: Line protocol ip on interface Ethernet0.3, changed state to UP

Configuration of the switches

sys

Enter system view , return user view with Ctrl+Z.

[Quidway]vlan 1

[Quidway-vlan1]vlan 2

[Quidway-vlan2]port ethernet 0/17 to eth 0/19 eth 0/22 //Add the port from 17th to 19th and 22nd to VLAN2 [Quidway-vlan2]vlan 3

[Quidway-vlan3]port eth 0/21 // Add the 21st port to VLAN3[Quidway-vlan3]inter e0/24

[Quidway-Ethernet0/24]port link-type trunk //Set the 24th port to be trunk port[Quidway-Ethernet0/24]port trunk permit vlan all// Allow all VLAN flow pass throughPlease wait........................................... Done.

[Quidway-Ethernet0/24]dis port trunk // Check out the TRUNK port configuration Now, the following trunking ports exist:

Ethernet0/24

[Quidway-Ethernet0/24]dis vlan 2 // Check out the VLAN2 configurationVLAN ID: 2

VLAN Type: static

Route Interface: not configured

Description: VLAN 0002

Tagged Ports:

Ethernet0/24

Untagged Ports:

Ethernet0/17 Ethernet0/18 Ethernet0/19 Ethernet0/22

[Quidway-Ethernet0/24]dis vlan 3 // Check out the VLAN3 configurationVLAN ID: 3

VLAN Type: static

Route Interface: not configured

Description: VLAN 0003

Tagged Ports:

Ethernet0/24

Untagged Ports:

Ethernet0/21

Check the network connectivity on the workstation. This workstation is connected to the 21st port of S3026, belonging to VLAN2.

C:\Documents and Settings\Administrator>ipconfig

windows 2000 IP Configuration

Ethernet adapter Local connection:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 172.16.2.22

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 172.16.2.1

C:\Documents and Settings\Administrator>ping 172.16.3.1

Pinging 172.16.3.1 with 32 bytes of data:

Reply from 172.16.3.1: bytes=32 time