GNS3(0.8.2-BATA)与VMWare虚拟机互联,实现虚拟机上网

拓扑图

 

 

路由器设置

Router#sh run

Building configuration...

 

Current configuration : 883 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Router

!

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

!

ip cef

ip name-server 192.168.121.210

!

interface FastEthernet0/0

 ip address 172.16.0.1 255.255.0.0

 ip nat inside

 ip virtual-reassembly

 duplex auto

 speed auto

!

interface FastEthernet1/0

 ip address 192.168.121.233 255.255.255.0

 ip nat outside

 ip virtual-reassembly

 duplex auto

 speed auto

!

no ip http server

!

ip forward-protocol nd

ip route 0.0.0.0 0.0.0.0 192.168.121.1

!

ip nat pool Net1 192.168.121.250 192.168.121.254 netmask 255.255.255.0

ip nat inside source list 1 pool Net1

!

access-list 1 permit 172.16.0.0 0.0.0.255

!

control-plane

!

line con 0

line aux 0

line vty 0 4

 login

!

end

 
虚拟机设置

 
PS:GNS路由器的默认路由应该设置成ip route 0.0.0.0 0.0.0.0 192.168.121.1(真实宽带路由器地址)
 
参考链接: http://bbs.51cto.com/thread-816849-1.html

 

你可能感兴趣的:(虚拟机,职场,上网,休闲)