Download as DOC, PDF, TXT or read online from Scribd
Download as doc, pdf, or txt
You are on page 1of 4
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.1 to rea!i"e interoperabi!ity of VLAN on the condition that part of the hosts need to communicate among VLAN whi!e the switches doesn#t support the three$!ayer switch% which re&uires the estab!ishment of a sub$interface on the 'thernet port% assignment of the () address as the re!ated VLAN gateway% and start 802.1 at the same time. Networking: *onnect '0 port of the router with up!in+ trun+ port ,2-th ports. of the switch on the router% and di/ide 0 VLAN on switch downward port with se/era! hosts. Configuration of the routers 12outer3 12outer3inter e0 12outer$'thernet03ip add 10.0.0.1 244.244.244.0 12outer$'thernet03inter e0.1 55 6efine '0.1 sub$interface 12outer$'thernet0.13ip add 172.18.1.1 244.244.244.0 12outer$'thernet0.13/!an$type dot1& /id 1 559pecify the 'thernet sub$interfaces be!onging to VLAN1% and this command is app!ied to the 'thernet sub$interface. :n!y this command is configured% the 'thernet sub$interface wi!! be embedded VLAN tag in the 'thernet frame header according to the configuration of the VLAN (6 number so that the switch port connected to the switch interface can dea! with the recei/ed frame correct!y on!y the command has been configured. 12outer$'thernet0.13inter e0.2 55 6efine '0.2 sub$interface 12outer$'thernet0.23ip add 172.18.2.1 244.244.244.0 12outer$'thernet0.23/!an$type dot1& /id 2 55 9pecify the 'thernet sub$interfaces be!onging to VLAN2 12outer$'thernet0.23inter e0.0 55 6efine '0.0 sub$interface 12outer$'thernet0.03ip add 172.18.0.1 244.244.244.0 12outer$'thernet0.03/!an$type dot1& /id 0 55 9pecify the 'thernet sub$interfaces be!onging VLAN0 12outer$'thernet0.03inter e0 12outer$'thernet03undo shut ; (nterface 'thernet0 is up 12outer$'thernet03 55*onnect the '0 port with the 2- th port of 90028 with the networ+ cab!e ;1<=-8=02= (nterface 'thernet0 changed state to >) ;1<=-8=02= Line protoco! ip on interface 'thernet0% changed state to >) 1 ;1<=-8=02= Line protoco! ip on interface 'thernet0.1% changed state to >) ;1<=-8=02= Line protoco! ip on interface 'thernet0.2% changed state to >) ;1<=-8=02= Line protoco! ip on interface 'thernet0.0% changed state to >) Configuration of the switches ?uidway@ ?uidway@sys 'nter system /iew % return user /iew with *tr!AB. 1uidway3/!an 1 1uidway$/!an13/!an 2 1uidway$/!an23port ethernet 0517 to eth 051< eth 0522 55Add the port from 17th to 1<th and 22 nd to VLAN2 1uidway$/!an23/!an 0 1uidway$/!an03port eth 0521 55 Add the 21 st port to VLAN0 1uidway$/!an03inter e052- 1uidway$'thernet052-3port !in+$type trun+ 559et the 2- th port to be trun+ port 1uidway$'thernet052-3port trun+ permit /!an a!!
55 A!!ow a!! VLAN f!ow pass through )!ease wait........................................... 6one. 1uidway$'thernet052-3dis port trun+ 55 *hec+ out the T2>NC port configuration Now% the fo!!owing trun+ing ports eDist= 'thernet052- 1uidway$'thernet052-3dis /!an 2
55 *hec+ out the VLAN0 configuration VLAN (6= 0 VLAN Type= static 2oute (nterface= not configured 6escription= VLAN 0000 Tagged )orts= 'thernet052- >ntagged )orts= 'thernet0521 2 *hec+ the networ+ connecti/ity on the wor+station. This wor+station is connected to the 21st port of 90028% be!onging to VLAN2. *=E6ocuments and 9ettingsEAdministrator@ipconfig windows 2000 () *onfiguration 'thernet adapter Loca! connection= *onnection$specific 6N9 9uffiD . = () Address. . . . . . . . . . . . = 172.18.2.22 9ubnet Fas+ . . . . . . . . . . . = 244.244.244.0 6efau!t Gateway . . . . . . . . . = 172.18.2.1 *=E6ocuments and 9ettingsEAdministrator@ping 172.18.0.1 )inging 172.18.0.1 with 02 bytes of data= 2ep!y from 172.18.0.1= bytesH02 time?10ms TTLH244 2ep!y from 172.18.0.1= bytesH02 time?10ms TTLH244 2ep!y from 172.18.0.1= bytesH02 time?10ms TTLH244 2ep!y from 172.18.0.1= bytesH02 time?10ms TTLH244 )ing statistics for 172.18.0.1= )ac+ets= 9ent H -% 2ecei/ed H -% Lost H 0 ,0; !oss.% ApproDimate round trip times in mi!!i$seconds= Finimum H 0ms% FaDimum H 0ms% A/erage H 0ms View the routing tab!e on the router% can be found% as each of the networ+ segments on the 172.18 are connected to the router direct!y% so the communication between the VLAN can be rea!i"ed without starting the routing protoco!s or static routing. 12outer3disp!ay ip routing$tab!e 2outing Tab!es= 6estination5Fas+ )roto )ref Fetric NeDthop (nterface 10.0.0.052- 6irect 0 0 10.0.0.1 'thernet0 10.0.0.1502 6irect 0 0 127.0.0.1LoopIac+0 127.0.0.058 6irect 0 0 127.0.0.1 LoopIac+0 127.0.0.1502 6irect 0 0 127.0.0.1 LoopIac+0 172.18.1.052- 6irect 0 0 172.18.1.1 'thernet0.1 172.18.1.1502 6irect 0 0 127.0.0.1 LoopIac+0 172.18.2.052- 6irect 0 0 172.18.2.1 'thernet0.2 172.18.2.1502 6irect 0 0 127.0.0.1 LoopIac+0 172.18.0.052- 6irect 0 0 172.18.0.1 'thernet0.0 172.18.0.1502 6irect 0 0 127.0.0.1 LoopIac+0 More related: Jow to *onfigure Juawei router$on$a$stic+ 'Damp!e for *onfiguring the Netstream Kunction to Account >ser Traffic 3 'Damp!e for *onnecting (ntranet >sers to the (nternet in NAT Address )oo! Fode 'Damp!e for *onnecting (ntranet >sers to the (nternet in NAT Address )oo! Fode The !atest /ersion of Juawei switch configuration commands= router command More Huawei products and Reviews you can visit: http=55www.huanetwor+.com5b!og Juanetwor+.com is a wor!d !eading Juawei networ+ing products distributor% we who!esa!e origina! new Juawei networ+ing e&uipments% inc!uding Juawei switches% Juawei routers% Juaweisymantec security products% Juawei (A6% Juawei 9K) and other Juawei networ+ing products. :ur customers inc!ude te!ecom operators% Juawei rese!!ers% (9) and system integrators. 2ight now most of our sa!es are contributed by regu!ar customers. (n Juanetwor+ Lab% a!so we ha/e Juawei :LT% F6>% 69LAF and switch for customer do remote testing% any potentia! customer are we!come to !ogin to our !ab. (f you need a tota! Juawei KTTD so!ution or Juawei A69L so!ution for your networ+% a!so you may fee! free to contact us. :ur website= http=55www.huanetwor+.com Te!ephone= A842$00401<-0 'mai!= sa!esLhuanetwor+.com Address= 205K Luc+y )!a"a% 014$021 Loc+hart 2oad% Manchai% Jong+ong 4