码迷,mamicode.com
首页 > 其他好文 > 详细

H3C 单臂路由配置 V7平台

时间:2017-02-28 14:13:42      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:h3c 单臂路由配置 vlan间路由 v7平台 h3c模拟器hclv2.0

单臂路由实验

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 单臂路由配置 vlan间路由 v7平台 h3c模拟器hclv2.0

原文地址:http://adolph620.blog.51cto.com/3040227/1901903

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!