H3C模拟器划分VLAN配置IP
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了H3C模拟器划分VLAN配置IP相关的知识,希望对你有一定的参考价值。
某公司在北京建立了总部,后在广州建立了分中心,并在全国各省都设 立了办事处。总部设有研发、市场、供应链、售后等 4 个部门,统一进行 IP 及业务资源的规划和分配。 公司规模在 2016 年快速发展,业务数据量和公司访问量增长巨大。为 了更好管理数据,提供服务,公司决定建立自己的小型数据中心及云计算服 务平台,以达到快速、可靠交换数据,以及增强业务部署弹性的目的。 总部、分中心及某办事处的网络架设(实际设备)网络拓扑结构如图 2.1 所示。 其中两台 S5800 交换机编号为 S4、S5,用于服务器高速接入;两台 S3600V2 编号为 S2、S3,作为总部的核心交换机;两台 MSR2630 路由器编号 为 R2、R3,作为总部的核心路由器;一台 S3600V2 编号为 S1,作为总部接 入交换机;一台 MSR2630 路由器编号为 R1,作为某办事处路由器。
S1
[S1-vlan15]vlan 15
[S1-vlan15]name RD
[S1-vlan15]vlan 25
[S1-vlan25]name Sales
[S1-vlan25]vlan 35
[S1-vlan35]name Supply
[S1-vlan35]vlan 45
[S1-vlan45]name service_supervlan
[S1-vlan45]vlan 55
[S1-vlan55]name service_supervlan1
[S1-vlan55]vlan 65
[S1-vlan65]name service_supervlan2
[S1-vlan65]vlan 75
[S1-vlan75]name service_supervlan3
[S1-vlan75]vlan 85
[S1-vlan85]name service_supervlan4
[S1-vlan85]vlan 45
[S1-vlan45]supervlan
[S1-vlan45]subvlan 55
[S1-vlan45]subvlan 65
[S1-vlan45]subvlan 75
[S1-vlan45]subvlan 85
[S1]int Vlan-interface 45
[S1-Vlan-interface45]local-proxy-arp enable
S4
[S4-vlan15]vlan 15
[S4-vlan15]name RD
[S4-vlan15]vlan 25
[S4-vlan25]name Sales
[S4-vlan25]vlan 35
[S4-vlan35]name Supply
[S4-vlan35]vlan 45
[S4-vlan45]name service
[S4-vlan45]vlan 105
[S4-vlan105]name Server_Mgmt
S5同S4一样
- 配置IP
S1
[S1]int vl 15
[S1-Vlan-interface15]ip add 192.10.15.254 24
[S1]int vl 25
[S1-Vlan-interface25]ip add 192.10.25.254 24
[S1]int vl 35
[S1-Vlan-interface35] ip add 192.10.35.254 24
[S1]int vl 45
[S1-Vlan-interface45] ip add 192.10.45.254 24
[S1]int g1/0/23
[[S1-GigabitEthernet1/0/23]] ip add 15.0.0.25 30
[S1]int g1/0/24
[S1-GigabitEthernet1/0/24]ip add 15.0.0.17 30
[S1]int LoopBack 0
[S1-LoopBack0]ip add 9.9.9.201 24
S2
[S2]vlan 15
[S2-vlan15]vlan 25
[S2-vlan25]vlan 35
[S2-vlan35]vlan 45
[S2-vlan45]vlan 105
[S2]int vl 15
[S2-Vlan-interface15]ip add 172.10.15.252 24
[S2]int vl 25
[S2-Vlan-interface25]ip add 172.10.25.252 24
[S2]int vl 35
[S2-Vlan-interface35] ip add 172.10.35.252 24
[S2]int vl 45
[S2-Vlan-interface45] ip add 172.10.45.252 24
[S2]int vl 105
[S2-Vlan-interface105] ip add 172.5.105.252 24
[S2]int g1/0/22
[S2-GigabitEthernet1/0/22]port link-mode route
[[S2-GigabitEthernet1/0/22] ip add 15.0.0.1 30
[S2]int g1/0/20
[S2-GigabitEthernet1/0/20]port link-mode route
[S2-GigabitEthernet1/0/20] ip add 15.0.0.5 30
[S2]int LoopBack 0
[S2-LoopBack0]ip add 9.9.9.202 24
S3
[S3]vlan 15
[S3]vlan 25
[S3]vlan 35
[S3]vlan 45
[S3]vlan 105
[S3]int vl 15
[S3-Vlan-interface15]ip add 172.10.15.253 24
[S3]int vl 25
[S3-Vlan-interface25]ip add 172.10.25.253 24
[S3]int vl 35
[S3-Vlan-interface35] ip add 172.10.35.253 24
[S3]int vl 45
[S3-Vlan-interface45] ip add 172.10.45.253 24
[S3]int vl 105
[S3-Vlan-interface105] ip add 172.5.105.253 24
[S3]int g1/0/22
[[S3-GigabitEthernet1/0/22] ip add 15.0.0.2 30
[S3]int g1/0/20
[S3-GigabitEthernet1/0/20] ip add 15.0.0.9 30
[S3]int LoopBack 0
[S3-LoopBack0]ip add 9.9.9.203 24
R1
[R1]int s 2/0
[R1-Serial2/0]ip add 15.0.0.13 30
[R1]int g 0/0
[R1-GigabitEthernet0/0]ip add 172.5.55.254 24
[R1]int LoopBack 0
[R1-LoopBack0]ip add 9.9.9.1 32
R2
[R2]int g 0/0
[R2-GigabitEthernet0/0]ip add 15.0.0.6 30
[R2]int g 0/1
[R2-GigabitEthernet0/1]ip add 15.0.0.26 30
[R2]int s 3/0
[R2-Serial3/0]ip add 15.0.0.21 30
[R2]int LoopBack 0
[R2-LoopBack0]ip add 9.9.9.2 32
R3
[R3]int g 0/0
[R3-GigabitEthernet0/0]ip add 15.0.0.10 30
[R3]int g 0/1
[R3-GigabitEthernet0/1]ip add 15.0.0.18 30
[R3]int s 2/0
[R3-Serial2/0]ip add 15.0.0.14 30
[R3]int s 3/0
[R3-Serial3/0]ip add 15.0.0.22 30
[R3]int LoopBack 0
[R3-LoopBack0]ip add 9.9.9.3 32
- 试验结果
以上是关于H3C模拟器划分VLAN配置IP的主要内容,如果未能解决你的问题,请参考以下文章