H3C设备网络组建和设置

news/2025/1/11 14:58:37/

路由器: ER8300

交换机: S3600v2

 

说明:这次网络配置主要是模拟,这套网络是挂在办公室网络下的.由于办公室给我的网络是:192.168.3.0/24, 网关是:192.168.3.254. 所以我们规划如下:

ER8300 wan口:192.168.3.11

设备ip(就是用于交换机,路由器互联ip): 192.168.2.x

应用ip全部在s3600v2上配置

:192.168.111.x, 192.168.112.x, 192.168.113.x, 192.168.114.x, 192.168.115.x .

其vlan号分别为: vlan111,vlan112,vlan113,vlan114,vlan115.

第一步:

首先连接交换机,设置

dhcp server ip-pool ip111network 192.168.111.0 mask 255.255.255.0gateway-list 192.168.111.254
dns-list 61.128.128.68expired day 4
dhcp server ip-pool ip112network 192.168.113.0 mask 255.255.255.0gateway-list 192.168.112.254
dns-list 61.128.128.68expired day 4
#其它网段类似配置.#在vlan接口中配置dhcp.
interface Vlan-interface111ip address 192.168.111.254 255.255.255.0dhcp server client-detect enable
interface Vlan-interface112ip address 192.168.112.254 255.255.255.0dhcp server client-detect enable
#其它网段类似配置.#在vlan接口中配置物理接口.
interface Ethernet1/0/11port link-mode bridgeport access vlan 111
interface Ethernet1/0/12port link-mode bridgeport access vlan 112
interface Ethernet1/0/13port link-mode bridgeport access vlan 113
#其它网段类似配置设置路由接口和ip地址:
Interface Ethernet 1/0/1
port link-mode routeip address 192.168.2.9 255.255.255.0创建默认静态路由:
ip route-static 0.0.0.0 0.0.0.0 192.168.2.1
开启dhcp
dhcp enable

 

第二步:

设置路由器

设置wan口为静态ip地址:192.168.3.11

设置lan口为静态ip地址:192.168.2.1

开启telnet 然后可以telnet上来ping 192.168.2.1和ping 192.168.3.254

设置接口路由

0.0.0.0  0.0.0.0  192.168.3.254  wan口

192.168.111.0  255.255.255.0  192.168.2.9  lan口

192.168.112.0  255.255.255.0  192.168.2.9  lan口

192.168.113.0  255.255.255.0  192.168.2.9  lan口

192.168.114.0  255.255.255.0  192.168.2.9  lan口

192.168.115.0  255.255.255.0  192.168.2.9  lan口

如图:

到这里就已经完成了.只需要测试和save.

 

第三步测试:

把电脑接到以太网12电口

如图:

 

 

 

 

[H3C]disp curr
#version 5.20, Release 2108P01
#sysname H3C
#irf mac-address persistent timerirf auto-update enableundo irf link-delay
#domain default enable system
#management-vlan 1001
#password-recovery enable
#
vlan 1
#
vlan 111 to 115
#
vlan 1001
#
domain systemaccess-limit disablestate active   idle-cut disableself-service-url disable
#
dhcp server ip-pool ip111network 192.168.111.0 mask 255.255.255.0gateway-list 192.168.111.254dns-list 61.128.128.68expired day 2
#
dhcp server ip-pool ip112network 192.168.112.0 mask 255.255.255.0gateway-list 192.168.112.254dns-list 61.128.128.68expired day 2
#
dhcp server ip-pool ip113network 192.168.113.0 mask 255.255.255.0gateway-list 8.8.8.8expired day 4
#
dhcp server ip-pool ip114network 192.168.114.0 mask 255.255.255.0gateway-list 192.168.114.254dns-list 8.8.8.8
#
dhcp server ip-pool ip115network 192.168.115.0 mask 255.255.255.0gateway-list 192.168.115.254dns-list 8.8.8.8expired day 5
#
user-group systemgroup-attribute allow-guest
#
local-user adminpassword cipher $c$3$+24A5LfChlwynQ6I4O3uUiEWX+dcKmvsservice-type terminal
#
interface Ethernet1/0/1port link-mode routeip address 192.168.2.9 255.255.255.0
#
interface NULL0
#
interface Vlan-interface111ip address 192.168.111.254 255.255.255.0dhcp server client-detect enable
#
interface Vlan-interface112ip address 192.168.112.254 255.255.255.0dhcp server client-detect enable
#
interface Vlan-interface113ip address 192.168.113.254 255.255.255.0dhcp server client-detect enable
#
interface Vlan-interface114ip address 192.168.114.254 255.255.255.0dhcp server client-detect enable
#
interface Vlan-interface115ip address 192.168.115.254 255.255.255.0dhcp server client-detect enable
#
interface Vlan-interface1001
#
interface Ethernet1/0/2port link-mode bridge
#               
interface Ethernet1/0/3port link-mode bridge
#
interface Ethernet1/0/4port link-mode bridge
#
interface Ethernet1/0/5port link-mode bridge
#
interface Ethernet1/0/6port link-mode bridge
#
interface Ethernet1/0/7port link-mode bridge
#
interface Ethernet1/0/8port link-mode bridge
#
interface Ethernet1/0/9port link-mode bridge
#
interface Ethernet1/0/10port link-mode bridge
#
interface Ethernet1/0/11port link-mode bridgeport access vlan 111
#
interface Ethernet1/0/12port link-mode bridgeport access vlan 112
#
interface Ethernet1/0/13port link-mode bridgeport access vlan 113
#
interface Ethernet1/0/14port link-mode bridgeport access vlan 114
#
interface Ethernet1/0/15port link-mode bridgeport access vlan 115
#
interface Ethernet1/0/16port link-mode bridge
#
interface Ethernet1/0/17port link-mode bridge
#
interface Ethernet1/0/18port link-mode bridge
#
interface Ethernet1/0/19port link-mode bridge
#
interface Ethernet1/0/20port link-mode bridge
#
interface Ethernet1/0/21port link-mode bridgeport access vlan 111
#
interface Ethernet1/0/22port link-mode bridgeport access vlan 112
#
interface Ethernet1/0/23port link-mode bridgeport access vlan 113
#
interface Ethernet1/0/24port link-mode bridge
#
interface GigabitEthernet1/0/25port link-mode bridge
#
interface GigabitEthernet1/0/26port link-mode bridge
#
interface GigabitEthernet1/0/27port link-mode bridge
#
interface GigabitEthernet1/0/28port link-mode bridge
#ip route-static 0.0.0.0 0.0.0.0 192.168.2.1
#dhcp enable
#load xml-configuration
#               load tr069-configuration
#
user-interface aux 0authentication-mode scheme
user-interface vty 0 15
#
return
[H3C]

http://www.ppmy.cn/news/217198.html

相关文章

h3c怎么创建虚拟服务器,h3c 设置虚拟服务器

h3c 设置虚拟服务器 内容精选 换一换 通过云服务器或者外部镜像文件创建私有镜像时,如果云服务器或镜像文件所在虚拟机的网络配置是静态IP地址时,您需要修改网卡属性为DHCP,以使私有镜像发放的新云服务器可以动态获取IP地址。本节以Windows Server 2008 R2操作系统为例。其他…

zabbix 监控 h3c

本文涉及到的工具及设备&#xff1a;zabbix4.0&#xff0c;h3c路由器 路由器开启snmp <h3c>system-view # 进入系统视图模式 [H3C]snmp-agent # 开始snmp [H3C]snmp-agent community read public # 配置snmp团体名 [H3C]snmp-agent sys-info version ? #配置snm…

黑苹果uhd630黑屏_微星 MSI GF63 i5-8300H+8G+128G+UHD630 基本完美黑苹果,把EFI分享给各位...

折腾了接近两个星期,最晚一次折腾到了凌晨4点,现在基本完美黑苹果&#xff0c;人怕折腾的&#xff0c;电脑怕折腾的&#xff0c;看到这儿就可以不用往下面看了。电脑刚买回来第二天我就拆机了&#xff0c;拆的时候不小心把一个卡扣掰断了&#xff0c;也不知道卡扣这种设计是为了…

MAC开不了机

https://support.apple.com/zh-cn/HT204267 昨天电脑我合上屏幕&#xff0c;之后就打不开了&#xff0c;充电的灯也是绿色的表示电充满了。但是试过苹果官方SMC也开不了。按电源键10秒也没反应。最后打了人工&#xff0c;也是上述方法给我找了售后去修。 我等了一会之后换个插座…

笔记本开不了机怎么办?

一、原因 1.异常关机 2.断电造成开机异常 二、解决措施 1.以小新Pro16为例 2.按5秒电源键关机&#xff0c;拔除充电器&#xff0c;整个过程中不要有电脑合盖的动作 3.长按电脑开机电源键15秒&#xff0c;出现电脑屏幕亮或者风扇转动&#xff0c;属于正常现象 4.等待5秒以…

iPad Pro 突然开不了机

iPad Pro &#xff08;11英寸&#xff09; &#xff08;第三代&#xff09; iPadOS 版本 16 昨天使用还好好的&#xff0c;今天开不了机了&#xff0c;也没进水&#xff0c;也没磕碰什么的&#xff0c;电源线连接也不显示充电&#xff0c;就只是黑屏。 解决办法&#xff1a; …

苹果电脑MacBookPro密码正确开不了电脑

苹果电脑MacBookPro密码正确开不了电脑&#xff0c;无了个大语 解决方法&#xff1a;1、关机2、按住开机键commandr3、进入配置页面&#xff0c;输入你记得的正确的密码4、开机重启 就可以输入正确的开机密码了

华硕电脑黑屏 怎么按都开不了机解决方法

电源灯开着&#xff0c;电脑开不开机&#xff0c;怎么按都开不了解决办法 长按电源键 按四十秒之后看到电源灯息了之后再亮起来就可以正常开机了