当前位置:网站首页>【H3C设备组网配置】
【H3C设备组网配置】
2022-07-21 09:25:00 【刘长栋】
实验要求
1 服务器组交换双链路上联核心,提高可靠性
2 按照拓扑配置vlan trunk 减小广播域范围
3 所有用户网关都配置在核心交换机上面, 实验楼用户采用自动IP
4 用户接口配置边缘端口减小用户口频繁UP down对网络产生的影响
5 配置相关路由是的用户可以访问外网及新校区
6 广域网出口做主备 链路正常时候 数据走移动主线上网
7 所有设备 都可以被远程TENLET管理 管理网段 valn999 192.168.255.x 8 vlan 30用户不能访问sever1
准备工作 : 关掉 消息提示
[sw9]undo info-center enable
步骤一 设置pc ip地址
1、sever 1 2
2、 教学楼 30.3 40.7
3、 新校区 80.2
步骤二 网桥聚合
sw9 核心交换机
[sw9]int Bridge-Aggregation 1
[sw9-Bridge-Aggregation1]link mode dynamic
[sw9-Bridge-Aggregation1]qu
[sw9]int range Ten-GigabitEthernet1/0/49 Ten-GigabitEthernet1/0/50
[sw9-if-range]port link-aggregation group 1
sw10 服务器交换机
[sw10]in b 1
[sw10-Bridge-Aggregation1]link mode dynamic
[sw10-Bridge-Aggregation1]qu
[sw10]int range Ten-GigabitEthernet1/0/49 Ten-GigabitEthernet1/0/50
[sw10-if-range]port link-aggregation group 1
网桥聚合完成
步骤三 配置vlan 和trunk
核心sw9
f服务器sw10
实验楼汇聚 sw14
接入 sw12 sw13
教学楼汇聚 sw 15
接入sw20 sw16
sw10服务器交换机
[sw10]vlan 200
[sw10]vlan 999
[sw10-vlan200] port g1/0/1
[sw10-vlan200] port g1/0/2
[sw10-vlan200]int b 1
[sw10-Bridge-Aggregation1]port link-ty trunk
Configuring Ten-GigabitEthernet1/0/49 done.
Configuring Ten-GigabitEthernet1/0/50 done.
[sw10-Bridge-Aggregation1]port trunk permit vlan 200 999
Configuring Ten-GigabitEthernet1/0/49 done.
Configuring Ten-GigabitEthernet1/0/50 done.
步骤四 网关和虚接口 vlanif
sw9核心 网关服务器
改G1/0/2口 为 route口 并配IP
[sw9]int g1/0/2
[sw9-GigabitEthernet1/0/2]port link-mode route
[sw9-GigabitEthernet1/0/2]ip add 192.168.100.1 24
其他物理接口 配虚接口 IP
[sw9]int vlan 200
[sw9-Vlan-interface200]ip ad
[sw9-Vlan-interface200]ip address 192.168.200.1 24
依次检测各PC(临时固定ip 网管可以不配)
步骤五 配置DHCP
只配核心sw9
只在核心上启用dhcp和地址池
[sw9]dhc enable
[sw9]dhcp server ip-pool 10.1
[sw9-dhcp-pool-10.1]network 192.168.10.0 mask 255.255.255.0
[sw9-dhcp-pool-10.1]gateway-list 192.168.10.1
[sw9-dhcp-pool-10.1]dns-list 8.8.8.8
依次其他口
步骤六 STP 协议树
核心为根网桥 优先级改成0
可以不被堵塞
[sw9]stp priority 0
业务口配置边缘口
使得pc up down不影响网络
[sw16]int g1/0/1
[sw16-GigabitEthernet1/0/1]stp edged-port
步骤七 ospf 配置(区域 动态路由协议)
[目的] 通过外网路由器 打通 不同区域, 例如不同地区的两个分公司
配置各路由器端口 IP
R17 内外网路由
[H3C]sysn R17
[R17]int s1/0
[R17-Serial1/0]ip add 14.1.1.1 24
R18 百度 路由
[H3C]sysn R18-YD
[R18-YD]int g0/0
[R18-YD-GigabitEthernet0/0]ip add 12.1.1.2 24
[R18-YD]int LoopBack 0
[R18-YD-LoopBack0]ip address 6.6.6.6 24
OSPF 配置
SW9核心 起 OSPF,配区域 ,宣告网段
[sw9]ospf 1
[sw9-ospf-1]area 0
[sw9-ospf-1-area-0.0.0.0]network 192.168.10.0 0.0.0.255
[sw9-ospf-1-area-0.0.0.0]network 192.168.20.0 0.0.0.255
[sw9-ospf-1-area-0.0.0.0]network 192.168.30.0 0.0.0.255
[sw9-ospf-1-area-0.0.0.0]network 192.168.40.0 0.0.0.255
[sw9-ospf-1-area-0.0.0.0]network 192.168.100.0 0.0.0.255
[sw9-ospf-1-area-0.0.0.0]network 192.168.200.0 0.0.0.255
R17 宣告network
R11 新校区 配置ospf和区域
到sw9上看路由表 ,已经学习到 80 12 13 14段地址
在新校区 80.2机器上ping通服务器200.1网关
步骤八 广域网 出口选路 - 主 备
R17 练外网路由器
配置缺省主路由**
[R17]ip route-static 0.0.0.0 0 12.1.1.2
配置热备路由 优先级为70**
[R17]ip route-static 0.0.0.0 0 13.1.1.2 preference 70
在主交换机上 配缺省路由**
[sw9]ip route-static 0.0.0.0 0 192.168.100.2
步骤九 net 内网地址转化成外网ACL
R17 ACL
[R17]acl basic 2000
[R17-acl-ipv4-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[R17-acl-ipv4-basic-2000]int g0/0
[R17-GigabitEthernet0/0]nat outbound 2000
[R17-GigabitEthernet0/0]int s1/0
[R17-Serial1/0]nat outbound 2000
[R17-Serial1/0]int g0/1
[R17-GigabitEthernet0/1]nat out 2000
PC8 ping 6.6.6.6 成功 6.6.6.6断开时 ping 7.7.7.7成功
步骤十 Telnet
开启Telnet服务, 每个设备都要配置 都一样
[R17]telnet server enable
新增用户 密码 并设为管理员组
[R17]local-user aa class manage
New local user added.
[R17-luser-manage-aa]password simple 123
服务类型 为Telnet
[R17-luser-manage-aa]service-type telnet
用户role 改为网络管理员
[R17-luser-manage-aa]authorization-attribute user-role network-admin
用户登录模式为账号密码
[R17]user-interface vty 0 4
[R17-line-vty0-4]authentication-mode scheme
通用代码 复制粘贴
telnet ser en
local-user aa class manage
password simple 123
service-type telnet
authorization-attribute user-role network-admin
user-interface vty 0 4
authentication-mode scheme
配置vlan999管理网段 和路由
sw9
[sw9]int vlan 999
[sw9-Vlan-interface999]ip address 192.168.255.9 24
除主核心外 ,其他设备还要配置缺省路由
[sw14]int vlan 999
[sw9-Vlan-interface999]ip address 192.168.255.14 24
[sw14]ip route-static 0.0.0.0 0 192.168.255;用于管理流量的回包
步骤十一 ACL
** 要求 30网段不能访问 200.4服务器
sw9上配置
开启acl
[sw9]acl advanced 3000
配置禁止规则
[sw9-acl-ipv4-adv-3000]rule deny ip source 192.168.30.0 0.0.0.255 destination 19
2.168.200.4 0.0.0.255
加载规则
[sw9-acl-ipv4-adv-3000]qu
[sw9]int vlan 30
[sw9-Vlan-interface30]packet-filter 3000 inbound
[sw9]dis acl all查看命令
边栏推荐
- 3564. 日期类
- HCIP第八天笔记
- 3625. Power
- DHCP protocol
- 开发期质量 节选自《闻缺陷则喜》(此书可免费下载)
- HCIP第九天笔记
- How does the computer access the Internet (II) from network cable to network equipment
- 一年时间过去了,LiveData真的被Flow代替了吗? LiveData会被废弃吗?
- 童年的回忆小游戏来了——贪吃蛇,快来自己动手写一个属于自己的小游戏吧
- Skywalking server building and microservice access to skywalking
猜你喜欢
HCIP第十一天笔记
Chapter 3 business function development (to display the main page of clues and query the data of each drop-down box of the form)
马斯克把大脑上传云端?周鸿祎:还得要用人脑安全卫士杀个毒
rose
Add two numbers leecode2
How does the computer access the Internet (II) from network cable to network equipment
学习STM32,从HAL库的框架设计开始
Skywalking server building and microservice access to skywalking
07.01 哈夫曼树
Gateway route assertion factory, filter factory, cross domain processing
随机推荐
【213】go语言问的比较多的面试题
Seata details of distributed transactions
Go compiles 32-bit programs in 64 bit environment
Codeforces Round #808 (Div. 2) - A,B,C
抓住晨会驱动【目标管理】
学习STM32,从HAL库的框架设计开始
[development tutorial 6] AI voice face recognition (Conference recorder / face punch card machine) - serial port
After 2 days of obsolescence, Microsoft gave up "banning" commercial open source!
Creation of configuration files in Nacos configuration center and reading of Nacos configuration center by microservices
Grasp the drive of morning meeting 【 target management 】
开发期质量 节选自《闻缺陷则喜》(此书可免费下载)
Codeforces round 806 (Div. 4) d (DP, special judgment of large numbers)
一年时间过去了,LiveData真的被Flow代替了吗? LiveData会被废弃吗?
OSPF综合实验
Distributed transaction two-phase commit, at mode, TCC mode
Anti sandbox method
解决报错 OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized
Skywalking integrated logging framework, alarm and high availability cluster construction
JS object: several ways to implement inheritance and their advantages and disadvantages
使用LoadBalancer替换Ribbon负载均衡器