H3C ER6300 + 两台 H3C S5120 组网举例

 

 

组网需求:

 

1、H3C ER6300 作出口路由、防火墙及Qos限速等功能(ER6300 配置LAN口 192.168.30.254默认网关)

 

2、H3C S5120 两台配置相同VLAN10 VLAN  20 VLAN 30并分配IP地址

VLAN 10 192.168.10.1/24      分配端口  Gi 1/0/1 - Gi 1/0/5

VLAN 20 192.168.20.1/24       分配端口  Gi 1/0/6 - Gi 1/0/10

VLAN 30 192.168.30.1/24       只在第一台交换机分配端口  Gi 1/0/30  用于与H3C ER6300 LAN口相连(第二台交换机不用分配端口)

 

3、H3C S5120 两台配置 Gi 1/0/47 - Gi 1/0/48端口为二层动态聚合接口1

 

4、H3C S5120两台配置静态默认路由指向H3C ER6300路由器默认网关 0.0.0.0 0.0.0.0 192.168.30.254

 

5、配置一台DHCP服务器192.168.20.20(windows server 2008 R2操作系统)连接到第一台H3C S5120交换机VLAN 20并配置DHCP中继代理

 

6、H3C ER6300路由器静态路由列表配置VLAN 10和VLAN 20回程路由

 

 

 

组网示意图:

 

 

 

 

组网端口接法

 

 

 

 

 

第一台H3C S5120-52P-WiNet

##配置VLAN 10和VLAN 20

<H3CSW01>system-view

[H3CSW01]undo info enable   #关闭信息提示

[H3CSW01]vlan 10

[H3CSW01-vlan10]port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/5

[H3CSW01-vlan10]quit

[H3CSW01-Vlan-interface10]ip address 192.168.10.1 255.255.255.0

[H3CSW01]vlan 20

[H3CSW01-vlan20]port GigabitEthernet 1/0/6 to GigabitEthernet 1/0/10

[H3CSW01-vlan20]quit

[H3CSW01]interface Vlan-interface 20

[H3CSW01-Vlan-interface20]ip address 192.168.20.1 255.255.255.0

[H3CSW01-Vlan-interface20]quit

 

#创建VLAN 30(用于连接H3C ER6300接口LAN口)

[H3CSW01]vlan 30

[H3CSW01-vlan30]port GigabitEthernet 1/0/40

[H3CSW01]interface Vlan-interface 30

[H3CSW01-Vlan-interface30]ip address 192.168.30.1 255.255.255.0

[H3CSW01-Vlan-interface30]quit

 

##创建二层聚合接口1并配置该接口为动态聚合模式[H3CSW01]interface [H3CSW01]interface Bridge-Aggregation 1

[H3CSW01-Bridge-Aggregation1]link-aggregation mode dynamic

[H3CSW01-Bridge-Aggregation1]quit

##分别将端口GigabitEthernet 1/0/47至GigabitEthernet 1/0/48加入到聚合组1中

[H3CSW01]interface GigabitEthernet 1/0/47

[H3CSW01-GigabitEthernet1/0/47]port link-aggregation group 1

[H3CSW01-GigabitEthernet1/0/47]quit

[H3CSW01]interface GigabitEthernet 1/0/48

[H3CSW01-GigabitEthernet1/0/48]port link-aggregation group 1

[H3CSW01-GigabitEthernet1/0/48]quit

[H3CSW01]interface Bridge-Aggregation 1

[H3CSW01-Bridge-Aggregation1]port link-type trunk

[H3CSW01-Bridge-Aggregation1]port trunk permit vlan all

[H3CSW01-Bridge-Aggregation1]quit

##显示与维护

[H3CSW01]display link-aggregation member-port

[H3CSW01]display link-aggregation  summary

[H3CSW01]display link-aggregation  verbose

 

##配置默认路由出口路由

[H3CSW01]ip route-static 0.0.0.0 0.0.0.0 192.168.30.254

[H3CSW01]display ip routing-table   #查看路由表

 

##配置DHCP中继代理

<H3C>system-view

[H3C]dhcp enable

##创建DHCP中继组 2 并配置DHCP服务器 192.168.20.20(windows server 2008 R2操作系统)

[H3C]dhcp relay server-group 2 ip 192.168.20.20

##配置VLAN 10和VLAN 20工作在DHCP中继模式,并指定DHCP中继组2

[H3C]interface Vlan-interface 10

[H3C-Vlan-interface10]dhcp select relay

[H3C-Vlan-interface10]dhcp relay server-select 2

[H3C-Vlan-interface10]quit     

[H3C]interface Vlan-interface 20  

[H3C-Vlan-interface20]dhcp select relay

[H3C-Vlan-interface20]dhcp relay server-select 2

[H3C-Vlan-interface20]quit

 

 

 

第二台H3C S5120-52P-WiNet

##配置VLAN 10和VLAN 20

<H3CSW02>system-view

[H3CSW02]undo info enable     #关闭信息提示

[H3CSW02]vlan 10

[H3CSW02-vlan10]port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/5

[H3CSW02-vlan10]quit

[H3CSW02-Vlan-interface10]ip address 192.168.10.1 255.255.255.0

[H3CSW02]vlan 20

[H3CSW02-vlan20]port GigabitEthernet 1/0/6 to GigabitEthernet 1/0/10

[H3CSW02-vlan20]quit

[H3CSW02]interface Vlan-interface 20

[H3CSW02-Vlan-interface20]ip address 192.168.20.1 255.255.255.0

[H3CSW02-Vlan-interface20]quit

 

#创建VLAN 30(不用分配端口,VLAN 30用户于与H3C ER6300路由互通使用)

[H3CSW02]vlan 30

[H3CSW02-vlan30]quit

[H3CSW02]interface Vlan-interface 30

[H3CSW02-Vlan-interface30]ip address 192.168.30.1 255.255.255.0

[H3CSW02-Vlan-interface30]quit

 

##创建二层聚合接口1并配置该接口为动态聚合模式[H3CSW01]interface [H3CSW02]interface Bridge-Aggregation 1

[H3CSW02-Bridge-Aggregation1]link-aggregation mode dynamic

[H3CSW02-Bridge-Aggregation1]quit

##分别将端口GigabitEthernet 1/0/47至GigabitEthernet 1/0/48加入到聚合组1中

[H3CSW02]interface GigabitEthernet 1/0/47

[H3CSW02-GigabitEthernet1/0/47]port link-aggregation group 1

[H3CSW02-GigabitEthernet1/0/47]quit

[H3CSW02]interface GigabitEthernet 1/0/48

[H3CSW02-GigabitEthernet1/0/48]port link-aggregation group 1

[H3CSW02-GigabitEthernet1/0/48]quit

[H3CSW02]interface Bridge-Aggregation 1

[H3CSW02-Bridge-Aggregation1]port link-type trunk

[H3CSW02-Bridge-Aggregation1]port trunk permit vlan all

[H3CSW02-Bridge-Aggregation1]quit

##显示与维护

[H3CSW02]display link-aggregation member-port

[H3CSW02]display link-aggregation  summary

[H3CSW02]display link-aggregation  verbose

 

##配置默认路由出口路由

[H3CSW02]ip route-static 0.0.0.0 0.0.0.0 192.168.30.254

[H3CSW02]display ip routing-table   #查看路由表

 

 

 

 

H3C ER6300 添加VLAN 10 和 VLAN 20回程路由操作

 (可以使用爱快ikuai软路由,功能更强大,免费使用        官网:   https://www.ikuai8.com/   )

 

 

 

posted @ 2018-04-04 11:30  邹龙彬  阅读(1744)  评论(0编辑  收藏  举报