Configuration of the Huawei one-armed router
Requirements: in the LAN, by configuring the MA5600T VLAN switch can reduce the range of the hostcommunication broadcast domain, when a part of the host to communication between VLAN,but the switch does not support the three layer exchange, exchange can use a 802.1Q routerto implement VLAN. This needs to establish the sub interface in the Ethernet port, IP distribution address as the gateway of the VLAN, while starting 802.1Q.
Networking: router E0 port and switch of the upstream trunk port (Port twenty-fourth) is connected with the switch port, down into 3 VLAN, with several hosts.
[Router-Ethernet0]ip add 10.0.0.1 255.255.255.0
[Router-Ethernet0]inter e0. 1 / E0.1 sub interface definition
[Router-Ethernet0.1]ip add 172.16.1.1 255.255.255.0
[Router-Ethernet0.1]vlan-type dot1q vid 1 / VLAN1 Ethernet network interface is specified, the command used in Ethernet network interface. Only after you configure the Ethernet networkinterface will command, depending on the configuration of the VLAN ID embedded in theEthernet frame header in the VLAN tag, switch interface can be connected with the network interface correctly received frames.
[Router-Ethernet0.1]inter e0. 2 / E0.2 sub interface definition
[Router-Ethernet0.2]ip add 172.16.2.1 255.255.255.0
[Router-Ethernet0.2]vlan-type dot1q vid 2 / VLAN2 Ethernet network interface is specified
[Router-Ethernet0.2]inter e0. 3 / E0.3 sub interface definition
[Router-Ethernet0.3]ip add 172.16.3.1 255.255.255.0
[Router-Ethernet0.3]vlan-type dot1q vid 3 / VLAN3 Ethernet network interface is specified
[Router-Ethernet0.3]inter E0
[Router-Ethernet0]undo shut
% Interface Ethernet0 is up
[Router-Ethernet0] / / cable will be connected to a S3026 twenty-fourth port E0 port
%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
The 2 switch (S3026) configuration
Enter system view, return user view with Ctrl+Z.
[Quidway-vlan2]port Ethernet 0/17 to eth 0/19 eth 0/22 / / seventeenth to 19 port and twenty-second port, join VLAN2
[Quidway-vlan3]port eth 0/21 / / twenty-first port to join VLAN3
[Quidway-vlan3]inter e0/24
[Quidway-Ethernet0/24]port link-type trunk / / twenty-fourth port to trunk port
[Quidway-Ethernet0/24]port trunk permit VLAN all / / allows all VLAN traffic through
[Quidway-Ethernet0/24]dis port trunk / / TRUNK port configuration
Now, the following trunking ports exist:
[Quidway-Ethernet0/24]dis VLAN 2 / VLAN2 configuration
Route Interface: not configured
Ethernet0/17 Ethernet0/18 Ethernet0/19 Ethernet0/22
[Quidway-Ethernet0/24]dis VLAN 3 / VLAN3 configuration
Route Interface: not configured
3 on the workstation to check whether the network connectivity. This workstation connected to S3026 port twenty-first, belonging to VLAN2.
C:\Documents and Settings\Administrator>ipconfig
Windows 2000 IP Configuration
Ethernet adapter local connection:
The Connection-specific DNS Suffix:
IP Address.'s...: 172.16.2.22
Subnet Mask's...: 255.255.255.0
Default Gateway. A...: 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<10ms TTL=255
Reply from 172.16.3.1: bytes=32 time<10ms TTL=255
Reply from 172.16.3.1: bytes=32 time<10ms TTL=255
Reply from 172.16.3.1: bytes=32 time<10ms TTL=255
Ping statistics for 172.16.3.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
4 in the router routing table view. Can be found, because of the 172.16 segments areconnected route, there was no need to enable routing protocols or static routing that can realize the communication between VLAN.
[Router]display IP routing-table
Destination/Mask Proto Pref Metric Nexthop Interface
10.0.0.0/24 Direct 00 10.0.0.1 Ethernet0
10.0.0.1/32 Direct 00 127.0.0.1 LoopBack0
127.0.0.0/8 Direct 00 127.0.0.1 LoopBack0
127.0.0.1/32 Direct 00 127.0.0.1 LoopBack0
172.16.1.0/24 Direct 00 172.16.1.1 Ethernet0.1
172.16.1.1/32 Direct 00 127.0.0.1 LoopBack0
172.16.2.0/24 Direct 00 172.16.2.1 Ethernet0.2
172.16.2.1/32 Direct 00 127.0.0.1 LoopBack0
172.16.3.0/24 Direct 00 172.16.3.1 Ethernet0.3 MA5606T
172.16.3.1/32 Direct 00 127.0.0.1 LoopBack0
More information, please view: http://www.huanetwork.com