admin 发表于 2021-2-5 13:46:05

HCNA-10 利用单臂路由实现VLAN间路由

HCNA-10 利用单臂由实现VLAN间路由1、 配置各交换机基本配及VLAN<Huawei>clocktimezone BJ add 8:00:00<Huawei>clockdatetime 18:00 2020-05-02<Huawei>system-viewvlan10//创建VLAN10descriptionIT//描述为ITquitvlan20descriptionshichangquitinterfaceGigabitEthernet 0/0/1undonegotiation auto//接口不执行自动协议duplexfull//配置接口为全双工模式speed1000//配置接口速率为1000Mportlink-type access//配置接口链路为accessportdefault vlan 10//配置接口默认VLANquitinterfaceGigabitEthernet 0/0/2undonegotiation autoduplexfullspeed1000portlink-type accessportdefault vlan 20quitinterfaceGigabitEthernet 0/0/24undonegotiation autoduplexfullspeed1000portlink-type trunkporttrunk allow-pass vlan allreturn<sw3>save <Huawei>clocktimezone BJ add 8:00:00<Huawei>clockdatetime 18:09 2020-05-02<Huawei>system-viewsysnamesw2vlan30descriptioncaiwuquitinterfaceGigabitEthernet 0/0/1undonegotiation autoduplexfullspeed1000portlink-type access portdefault vlan 30quitinterfaceGigabitEthernet 0/0/24undonegotiation autoduplexfull speed1000portlink-type trunkporttrunk allow-pass vlan allquitreturn<sw2>save <Huawei>clocktimezone BJ add 8:00:00<Huawei>clockdatetime 18:16 2020-05-02<Huawei>system-viewsysnamesw1vlanbatch 10 20 30port-groupgroup-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/3 undonegotiation autoduplexfullspeed1000portlink-type trunkporttrunk allow-pass vlan allreturn<sw1>displayvlan<sw1>displayport vlan active
2、 配置路由器子接口IP地址和子接口封装VLAN<Huawei>clocktimezone BJ add 8:00:00<Huawei>clockdatetime 18:23 2020-05-02<Huawei>system-viewsysnamer1interfaceGigabitEthernet 0/0/0.1//创建GE 0/0/0.1子接口ipaddress 172.16.10.1 24   //配置IP地址dot1qtermination vid 10//对接口封装VLANarpbroadcast enable   //开启ARP广播quitinterfaceGigabitEthernet 0/0/0.2ipaddress 172.16.20.1 24dot1qtermination vid 20arpbroadcast enablequitinterfaceGigabitEthernet 0/0/0.3ipaddress 172.16.30.1 24dot1qtermination vid 30arpbroadcast enablequitdisplayip interface brief//查看IP接口简介*down:administratively down^down:standby(l):loopback(s):spoofingThe numberof interface that is UP in Physical is 5The numberof interface that is DOWN in Physical is 2The numberof interface that is UP in Protocol is 4The numberof interface that is DOWN in Protocol is 3 Interface                         IP Address/Mask      PhysicalProtocolGigabitEthernet0/0/0            unassigned         up         down      GigabitEthernet0/0/0.1            172.16.10.1/24       up         up      GigabitEthernet0/0/0.2            172.16.20.1/24       up         up      GigabitEthernet0/0/0.3            172.16.30.1/24       up         up      GigabitEthernet0/0/1            unassigned         down       down   GigabitEthernet0/0/2            unassigned         down       down   NULL0                           unassigned         up         up(s) displayip routing-table//查看IP路由表RouteFlags: R - relay, D - download to fib------------------------------------------------------------------------------RoutingTables: Public         Destinations : 13       Routes : 13       Destination/Mask    ProtoPreCost      Flags NextHop         Interface       127.0.0.0/8   Direct 0    0         D127.0.0.1       InLoopBack0      127.0.0.1/32Direct 0    0         D127.0.0.1       InLoopBack0127.255.255.255/32Direct 0    0         D127.0.0.1       InLoopBack0    172.16.10.0/24Direct 0    0         D172.16.10.1   GigabitEthernet0/0/0.1    172.16.10.1/32Direct 0    0         D127.0.0.1       GigabitEthernet0/0/0.1172.16.10.255/32Direct 0    0         D127.0.0.1       GigabitEthernet0/0/0.1    172.16.20.0/24Direct 0    0         D172.16.20.1   GigabitEthernet0/0/0.2    172.16.20.1/32Direct 0    0         D127.0.0.1       GigabitEthernet0/0/0.2172.16.20.255/32Direct 0    0         D127.0.0.1       GigabitEthernet0/0/0.2    172.16.30.0/24Direct 0    0         D172.16.30.1   GigabitEthernet0/0/0.3    172.16.30.1/32Direct 0    0         D127.0.0.1       GigabitEthernet0/0/0.3172.16.30.255/32Direct 0    0         D127.0.0.1       GigabitEthernet0/0/0.3255.255.255.255/32Direct 0    0         D127.0.0.1       InLoopBack0quit<r1>save
页: [1]
查看完整版本: HCNA-10 利用单臂路由实现VLAN间路由

公司网站