H3C 单臂路由配置 V7平台

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了H3C 单臂路由配置 V7平台相关的知识,希望对你有一定的参考价值。

单臂路由实验

1.用二层交换机实现多个VLAN互通,每个VLAN属于不同子网;

2.路由器接口能够划分子接口,做单臂路由

技术分享



路由器R1配置:

sys

sys r1

int g0/0.1

ip add 10.0.10.1 24

vlan-type dot1q vid 10

dhcp server apply ip-pool vlan10

int g0/0.2

ip add 10.0.20.1 24

vlan-type dot1q vid 20

dhcp server apply ip-pool vlan20

qu

dhcp enable

dhcp server ip-pool vlan10

gateway-list 10.0.10.1

network 10.0.10.0 mask 255.255.255.0

address range 10.0.10.10 10.0.10.250

qu

dhcp server ip-pool vlan20

gateway-list 10.0.20.1

network 10.0.20.0 mask 255.255.255.0

address range 10.0.20.10 10.0.20.250

dns-list 114.114.114.114

qu




交换机SW1配置:

sys

sys sw1

vlan 10

port g1/0/2

vlan 20

port g1/0/3

qu

int g1/0/1

port link-type trunk

port trunk permit vlan all

qu



R1上查看已分配的IP地址:

<r1>dis dhcp server ip-in-use

IP address      Client identifier/    Lease expiration      Type

                Hardware address

10.0.10.10      0039-6539-322e-3331-  Mar  1 09:06:10 2017  Auto(C)           

                6662-2e30-3430-362d-                                         

                4745-302f-302f-31                                             

10.0.20.10      0039-6539-322e-3334-  Mar  1 09:06:17 2017  Auto(C)           

                3866-2e30-3530-362d-                                         

                4745-302f-302f-31                                             

<r1>




PC_4设置为DHCP模式,自动获取的IP地址如下:

技术分享

[H3C]ping 10.0.20.10

Ping 10.0.20.10 (10.0.20.10): 56 data bytes, press CTRL_C to break

56 bytes from 10.0.20.10: icmp_seq=0 ttl=254 time=2.000 ms

56 bytes from 10.0.20.10: icmp_seq=1 ttl=254 time=2.000 ms

56 bytes from 10.0.20.10: icmp_seq=2 ttl=254 time=3.000 ms

56 bytes from 10.0.20.10: icmp_seq=3 ttl=254 time=1.000 ms

56 bytes from 10.0.20.10: icmp_seq=4 ttl=254 time=2.000 ms


--- Ping statistics for 10.0.20.10 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.000/2.000/3.000/0.632 ms

[H3C]%Feb 28 09:37:21:849 2017 H3C PING/6/PING_STATISTICS: Ping statistics for 10.0.20.10: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.000/2.000/3.000/0.632 ms.


PC_5也设置为DHCP,获取的IP地址为:

技术分享

本文出自 “网络清道夫” 博客,请务必保留此出处http://adolph620.blog.51cto.com/3040227/1901903

以上是关于H3C 单臂路由配置 V7平台的主要内容,如果未能解决你的问题,请参考以下文章

H3C单臂路由实验

单臂路由

华为 --- 单臂路由配置

路由器单臂路由配置

单臂路由实战 配置

单臂路由