
1、实现”实体机+ensp+VMware网络互通”
2、WIN DHCP服务器安装配置
3、LINUX DHCP 服务器安装配置
4、三层网络结构互通
二、实验要求
、实现实体机与ensp虚拟出来的电脑互通,以及VMware虚拟出来的服务器互通
、实现ensp虚拟出来的电脑与VMware虚拟出来的服务器互通
、模拟楼层交换机设置对应的VLAN 以及得到不通的IP地址,数据通过核心交换机交换
、VLAN 10 和 VLAN 20 从WIN DHCP 服务器得到10.10.10.0/24 和 10.10.20.0/24的IP 地址
、VLAN 30从LINUX DHCP 服务器得到10.10.30.0/24的IP地址
、 从本地实体电脑远程访问,ensp中的核心交换机,路由器,以及LINUX DHCP 服务器
三、网络结构图
四、配置思路
、用ensp模拟出一个出口路由器,一个核心交换机,三个楼层交换机,并配上相应的VLAN,以及配置
、出口路由器连接Cloud1,Cloud1设置映射到本地无线网络网卡
、核心交换机GE0/0/24连接到Cloud2 ,Cloud2设置映射到VMnet1网卡
、VMware 安装WINDOWS SERVER 2012R2虚拟服务器,以及REDHAT7虚拟服务器,并配置DHCP服务
五、配置文件
(一)网络部分
、出口路由器
[V200R003C00]
#
sysname route
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 192.168.240.123 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.240.195
ip route-static 10.10.0.0 255.255.0.0 1.1.1.2
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
、核心交换机
[HXSW]display current-configuration
#
sysname HXSW
#
vlan batch 10 20 30 200 999 to 1000
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
dhcp server group 2012r2
dhcp-server 10.10.0.1 0
#
dhcp server group linux
dhcp-server 10.10.0.3 0
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher "=LP!6$^-IYNZPO3JBXBHA!!
local-user admin privilege level 15
local-user admin service-type telnet ftp http
#
interface Vlanif1
#
interface Vlanif10
ip address 10.10.10.254 255.255.255.0
dhcp select relay
dhcp relay server-select 2012r2
#
interface Vlanif20
ip address 10.10.20.254 255.255.255.0
dhcp select relay
dhcp relay server-select 2012r2
#
interface Vlanif30
ip address 10.10.30.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 10.10.0.3
#
interface Vlanif200
ip address 10.10.0.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 10.10.0.3
#
interface Vlanif999
ip address 1.1.1.2 255.255.255.0
#
interface Vlanif1000
ip address 192.168.17.123 255.255.255.0
dhcp select interface
dhcp select relay
dhcp relay server-ip 192.168.17.129
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
description to route
port link-type access
port default vlan 999
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/22
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/23
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/24
port link-type access
port default vlan 200
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.1
#
user-interface con 0
user-interface vty 0 4
authentication-mode aaa
#
return
3、接入层交换机(只贴一个,其他两个配置类似)
<2FSW>display current-configuration
sysname 2FSW
#
vlan batch 20 30 200 1000
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type access
port default vlan 20
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
#
interface Ethernet0/0/3
port link-type access
port default vlan 20
#
interface Ethernet0/0/4
port link-type access
port default vlan 20
#
interface Ethernet0/0/5
port link-type access
port default vlan 20
interface NULL0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
user-interface con 0
user-interface vty 0 4
#
Return
5、Cloud 设定图
Cloud 1
Cloud 2
(二)服务器部分
1、VMware 网卡设置
2、安装WIN SERVER 2012 以及REDHAT7系统 ,网卡配置为主机模式
3、windows server 2012 配置DHCP服务
5、linux 服务器配置DHCP服务
authoritative;
ddns-update-style interim;
subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.20 10.10.0.200;
option domain-name-servers ns1.mvp.com,ns2.mvp.com;
option domain-name "dhcpsvr.mvp.com";
option routers 10.10.0.254;
default-lease-time 800; #1day
}
authoritative;
ddns-update-style interim;
subnet 10.10.30.0 netmask 255.255.255.0 {
range 10.10.30.20 10.10.30.200;
option domain-name-servers ns1.mvp.com,ns2.mvp.com;
option domain-name "10.10.0.3";
option routers 10.10.30.254;
default-lease-time 800; #1day
}
(三)测试结果
、Vlan 10 以及 Vlan 20 从win DHCP得到了IP地址
2、VLAN30 从LINUX DHCP得到了IP地址
3、从本地远程核心路由器,和LINUX 服务器
Ensp 虚拟PC ping 实体机
********************自己忽视的问题**************************************
1、实体机没有写回到ensp的路由表,导致前期研究了很久无法ensp访问到实体机
2、linux 服务器没有配置相同地址的DHCP范围,导致服务无法启动
3、ensp 的Cloud云映射电脑重启后,会有不通的现象,需要重新绑定下映射和连接
