实体机+ensp+VMware网络互通.doc
#+一实验目的1、 实现”实体机+ensp+VMware网络互通”2、 WIN DHCP服务器安装配置3、 LINUX DHCP 服务器安装配置4、 三层网络结构互通二、实验要求 1、实现实体机与ensp虚拟出来的电脑互通,以及VMware虚拟出来的服务器互通 2、实现ensp虚拟出来的电脑与VMware虚拟出来的服务器互通 3、模拟楼层交换机设置对应的VLAN 以及得到不通的IP地址,数据通过核心交换机交换 4、VLAN 10 和 VLAN 20 从WIN DHCP 服务器得到10.10.10.0/24 和 10.10.20.0/24的IP 地址 5、VLAN 30从LINUX DHCP 服务器得到10.10.30.0/24的IP地址 6、 从本地实体电脑远程访问,ensp中的核心交换机,路由器,以及LINUX DHCP 服务器三、网络结构图四、配置思路 1、用ensp模拟出一个出口路由器,一个核心交换机,三个楼层交换机,并配上相应的VLAN,以及配置 2、出口路由器连接Cloud1,Cloud1设置映射到本地无线网络网卡 3、核心交换机GE0/0/24连接到Cloud2 ,Cloud2设置映射到VMnet1网卡 4、VMware 安装WINDOWS SERVER 2012R2虚拟服务器,以及REDHAT7虚拟服务器,并配置DHCP服务五、配置文件 (一)网络部分 1、出口路由器 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.Nt84DZe#<08bmE3Uw%$%$ 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.195ip route-static 10.10.0.0 255.255.0.0 1.1.1.2#user-interface con 0 authentication-mode passworduser-interface vty 0 4user-interface vty 16 20#wlan ac 2、核心交换机HXSWdisplay current-configuration #sysname HXSW#vlan batch 10 20 30 200 999 to 1000#cluster enablentdp enablendp 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 0user-interface vty 0 4 authentication-mode aaa#return3、接入层交换机(只贴一个,其他两个配置类似) <2FSW>display current-configuration sysname 2FSW#vlan batch 20 30 200 1000#cluster enablentdp enablendp 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 Vlanif1interface 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 20interface NULL0#interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094#user-interface con 0user-interface vty 0 4#Return5、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 86400; #1day max-lease-time 604800; #7dayauthoritative;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 86400; #1day max-lease-time 604800; #7day(三)测试结果 1、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云映射电脑重启后,会有不通的现象,需要重新绑定下映射和连接