admin 发表于 2021-2-5 22:36:18

华为AR1220入门企业路由组网

华为AR1220入门企业路由组网
先配置1F、2F、3F二层交换机的VLAN<Huawei>system-viewsysname1fsw//配置设备名称vlan10//创建vlan10descriptionshichang//配置vlan描述quitinterfaceEthernet0/0/1//接口视图portlink-type access//配置接口链路类型为访问portdefault vlan 10//配置接口默认vlanquitinterfaceEthernet 0/0/22portlink-type trunkporttrunk allow-pass vlan allquit<1fsw>save //保存配置Thecurrent configuration will be written to the device.Areyou sure to continue?y <Huawei>system-viewsysname2fswvlan 20description caiwuquitinterface Ethernet 0/0/1portlink-type accessportdefault vlan 20quitinterface Ethernet 0/0/22portlink-type trunkporttrunk allow-pass vlan allquit<2fsw>saveThecurrent configuration will be written to the device.Areyou sure to continue?y <Huawei>system-viewsysname 3fswvlan 30description renshiquitinterfaceEthernet 0/0/1portlink-type accessportdefault vlan 30quitinterface Ethernet 0/0/22port link-type trunkporttrunk allow-pass vlan allquit<3fsw>saveThecurrent configuration will be written to the device.Areyou sure to continue?y
配置接入层交换机到AR1220 LAN接口<Huawei>system-viewsysnameCore Routervlan 10description shichangvlan 20description caiwuvlan 30description renshiquitinterface vlanif 10//三层转发逻辑接口ip address 192.168.10.1 24 //配置三层转发地址interface vlanif 20ip address 192.168.20.1 24interface vlanif 30ip address 192.168.30.1 24interface GigabitEthernet0/0/0ip address172.16.12.2 24interface Ethernet 0/0/0//接口视图port link-type trunk//配置接口链路类型为骨干链路port trunk allow-pass vlan 10//配置接口允许通过VLANinterface Ethernet 0/0/1port link-type trunkport trunk allow-passvlan 20interface Ethernet 0/0/2port link-type trunkport trunk allow-passvlan 30quitip route-static 0.0.0.0 0.0.0.0 172.16.12.1//配置默认路由指向下一跳地址display ip interface brief//查看IP接口简介*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 5The number of interface that is DOWN in Physical is1The number of interface that is UP in Protocol is 5The number of interface that is DOWN in Protocol is1 Interface                         IP Address/Mask      PhysicalProtocolGigabitEthernet0/0/0            172.16.12.2/24       up         up      GigabitEthernet0/0/1            unassigned         down       down   NULL0                           unassigned         up         up(s)   Vlanif10                        192.168.10.1/24      up      up      Vlanif20                        192.168.20.1/24      up      up      Vlanif30                        192.168.30.1/24      up      up   display port vlan active//查看接口VLAN活跃状态 T=TAG U=UNTAG C=Configured H=HVRP G=GVRPV=VOICE-VLAN E=E-LMIDA=Dynamic-authorization-VLANUU=Unauthenticated-user-VLAN M=Mac-Flapping-------------------------------------------------------------------------------Port               Link Type    PVID    VLAN List-------------------------------------------------------------------------------Eth0/0/0            trunk      1(C)   U: 1(C)                                       T:10(C)Eth0/0/1            trunk      1(C)   U: 1(C)                                       T:20(C)Eth0/0/2            trunk      1(C)   U: 1(C)                                       T:30(C)Eth0/0/3         hybrid       1(C)    U: 1(C)Eth0/0/4         hybrid       1(C)    U: 1(C)Eth0/0/5         hybrid       1(C)    U: 1(C)Eth0/0/6         hybrid       1(C)    U:1(C)Eth0/0/7         hybrid       1(C)    U: 1(C)return//返回用户视图<Core Router>save//保存配置The currentconfiguration will be written to the device. Are you sureto continue? (y/n):y
配置Core Router到出口网关<Huawei>system-viewsysname Gatewayinterface GigabitEthernet 0/0/0ip address 172.16.12.124quitinterface loopback 0ip address 192.168.100.100 32quitip route-static 0.0.0.0 0.0.0.0 172.16.12.2display ip interface brief*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 3The number of interface that is DOWN in Physical is1The number of interface that is UP in Protocol is 3The number of interface that is DOWN in Protocol is1 Interface                         IP Address/Mask      PhysicalProtocolGigabitEthernet0/0/0            172.16.12.1/24       up         up      GigabitEthernet0/0/1            unassigned         down       down   LoopBack0                        192.168.100.100/32   up         up(s)   NULL0                           unassigned         up         up(s   return<Gateway>saveThe currentconfiguration will be written to the device. Are you sureto continue? (y/n):y
测试全网全通(使用PC1测试)PC>ping 192.168.20.100 Ping 192.168.20.100: 32 data bytes, Press Ctrl_C tobreakFrom 192.168.20.100: bytes=32 seq=1 ttl=127 time=63msFrom 192.168.20.100: bytes=32 seq=2 ttl=127 time=62msFrom 192.168.20.100: bytes=32 seq=3 ttl=127 time=63msFrom 192.168.20.100: bytes=32 seq=4 ttl=127 time=94msFrom 192.168.20.100: bytes=32 seq=5 ttl=127 time=78ms --- 192.168.20.100 ping statistics ---5 packet(s)transmitted5 packet(s)received0.00% packetlossround-tripmin/avg/max = 62/72/94 ms PC>ping 192.168.30.100 Ping 192.168.30.100: 32 data bytes, Press Ctrl_C tobreakFrom 192.168.30.100: bytes=32 seq=1 ttl=127 time=78msFrom 192.168.30.100: bytes=32 seq=2 ttl=127 time=78msFrom 192.168.30.100: bytes=32 seq=3 ttl=127 time=94msFrom 192.168.30.100: bytes=32 seq=4 ttl=127 time=78msFrom 192.168.30.100: bytes=32 seq=5 ttl=127 time=93ms --- 192.168.30.100 ping statistics ---5 packet(s)transmitted5 packet(s)received0.00% packetlossround-tripmin/avg/max = 78/84/94 ms PC>ping 192.168.100.100 Ping 192.168.100.100: 32 data bytes, Press Ctrl_C tobreakFrom 192.168.100.100: bytes=32 seq=1 ttl=254 time=47msFrom 192.168.100.100: bytes=32 seq=2 ttl=254 time=31msFrom 192.168.100.100: bytes=32 seq=3 ttl=254 time=47msFrom 192.168.100.100: bytes=32 seq=4 ttl=254 time=63msFrom 192.168.100.100: bytes=32 seq=5 ttl=254 time=78ms --- 192.168.100.100 ping statistics ---5 packet(s)transmitted5 packet(s)received0.00% packetlossround-tripmin/avg/max = 31/53/78 ms PC>ping 172.16.12.2 Ping 172.16.12.2: 32 data bytes, Press Ctrl_C tobreakFrom 172.16.12.2: bytes=32 seq=1 ttl=255 time=31 msFrom 172.16.12.2: bytes=32 seq=2 ttl=255 time=47 msFrom 172.16.12.2: bytes=32 seq=3 ttl=255 time=47 msFrom 172.16.12.2: bytes=32 seq=4 ttl=255 time=31 msFrom 172.16.12.2: bytes=32 seq=5 ttl=255 time=47 ms --- 172.16.12.2 ping statistics ---5 packet(s)transmitted5 packet(s)received0.00% packetlossround-tripmin/avg/max = 31/40/47 ms 测试全网全通OK。
页: [1]
查看完整版本: 华为AR1220入门企业路由组网

公司网站