gre tunnel实验(GNS3)

原创 2012年03月30日 20:21:54

配置文件:


拓扑图:



(1) net文件:

autostart = False
[localhost:7200]
    workingdir = /home/chen/gns3workdir
    udp = 10000
    [[7200]]
        image = /mnt/e/study/cisco/Cisco/Others/c7200/c7200-advipservicesk9-mz.124-2.T.bin
        idlepc = 0x610eaf20
        ghostios = True
    [[ROUTER R5]]
        console = 2006
        slot1 = PA-4T+
        s1/0 = R0 s1/0
        s1/1 = R2 s1/1
        x = -198.0
        y = -112.0
    [[ROUTER R0]]
        console = 2000
        f0/0 = NIO_udp:5004:127.0.0.1:5005
        slot1 = PA-4T+
        s1/0 = R5 s1/0
        slot2 = PA-FE-TX
        x = -384.0
        y = -122.0
[localhost:7201]
    workingdir = /home/chen/gns3workdir
    udp = 10100
    [[7200]]
        image = /mnt/e/study/cisco/Cisco/Others/c7200/c7200-advipservicesk9-mz.124-2.T.bin
        idlepc = 0x610eaf20
        ghostios = True
    [[ROUTER R2]]
        console = 2002
        slot1 = PA-4T+
        s1/0 = R3 s1/0
        s1/1 = R5 s1/1
        slot2 = PA-FE-TX
        x = -25.0
        y = -126.0
        hx = 27.0
        hy = -27.0
    [[ROUTER R3]]
        console = 2003
        f0/0 = NIO_udp:5006:127.0.0.1:5007
        slot1 = PA-4T+
        s1/0 = R2 s1/0
        slot2 = PA-FE-TX
        x = 163.0
        y = -118.0
[GNS3-DATA]
    [[Cloud C2]]
        x = -499.5
        y = 30.0
        connections = R0:f0/0:nio_udp:5004:127.0.0.1:5005
    [[Cloud C3]]
        x = 157.5
        y = 33.0
        connections = R3:f0/0:nio_udp:5006:127.0.0.1:5007
    [[NOTE 1]]
        text = 172.16.4.4/24
        x = 235.0
        y = -25.0
        rotate = 0
    [[NOTE 2]]
        text = 61.0.0.4/24
        x = 132.0
        y = -157.0
        rotate = 0
    [[NOTE 3]]
        text = 172.16.1.1/24
        x = -420.0
        y = -42.0
        rotate = 0
    [[NOTE 4]]
        text = 61.0.0.3/24
        x = 13.0
        y = -50.0
        rotate = 0
    [[NOTE 5]]
        text = 218.30.1.3/24
        x = -67.0
        y = -170.0
        rotate = 0
    [[NOTE 6]]
        text = 218.30.1.2/24
        x = -189.0
        y = -163.0
        rotate = 0
    [[NOTE 7]]
        text = 202.96.134.2/24
        x = -225.0
        y = -40.0
        rotate = 0
    [[NOTE 8]]
        text = 202.96.134.1/24
        x = -384.0
        y = -180.0
        rotate = 0

(2)路由配置文件:

R0.cfg: 

!
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 logging console
!
no aaa new-model
!
resource policy
!
ip subnet-zero
ip cef
!
!
no ip dhcp use vrf connected
!
!
no ip ips deny-action ips-interface
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel0
 ip address 172.16.14.1 255.255.255.0
 tunnel source Serial1/0
 tunnel destination 61.0.0.4
!
interface FastEthernet0/0
 ip address 172.16.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex half
!
interface Serial1/0
 ip address 202.96.134.1 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
interface FastEthernet2/0
 no ip address
 shutdown
 duplex half
!
router rip
 version 2
 network 172.16.0.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial1/0
no ip http server
no ip http secure-server
!
!
ip nat inside source list 10 interface Serial1/0 overload
!
access-list 10 permit 172.16.1.0 0.0.0.255
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
!
!
end


R2.cfg:

!
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 logging console
!
no aaa new-model
!
resource policy
!
ip subnet-zero
ip cef
!
!
no ip dhcp use vrf connected
!
!
no ip ips deny-action ips-interface
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex half
!
interface Serial1/0
 ip address 61.0.0.3 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial1/1
 ip address 218.30.1.3 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
interface FastEthernet2/0
 no ip address
 shutdown
 duplex half
!
router rip
 version 2
 network 61.0.0.0
 network 218.30.1.0
!
ip classless
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
!
!
end


-----------------------------------

R3.cfg:

-----------------------------------

!
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 logging console
!
no aaa new-model
!
resource policy
!
ip subnet-zero
ip cef
!
!
no ip dhcp use vrf connected
!
!
no ip ips deny-action ips-interface
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel0
 ip address 172.16.14.4 255.255.255.0
 tunnel source Serial1/0
 tunnel destination 202.96.134.1
!
interface FastEthernet0/0
 ip address 172.16.4.4 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex half
!
interface Serial1/0
 ip address 61.0.0.4 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
interface FastEthernet2/0
 no ip address
 shutdown
 duplex half
!
router rip
 version 2
 network 172.16.0.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial1/0
no ip http server
no ip http secure-server
!
!
ip nat inside source list 10 interface Serial1/0 overload
!
access-list 10 permit 172.16.4.0 0.0.0.255
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
!
!
end


------------------------------

R5.cfg:

-----------------------------

!
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 logging console
!
no aaa new-model
!
resource policy
!
ip subnet-zero
ip cef
!
!
no ip dhcp use vrf connected
!
!
no ip ips deny-action ips-interface
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex half
!
interface Serial1/0
 ip address 202.96.134.2 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial1/1
 ip address 218.30.1.2 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router rip
 version 2
 network 202.96.134.0
 network 218.30.1.0
 no auto-summary
!
ip classless
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
!
!
end

-------------------------------------------------


结果:



----------------------------------------------------------------------------------------------------------

gre_tunnel实验文件

  • 2012年03月30日 20:46
  • 43KB
  • 下载

用 GNS3 做CCNA网络实验(1)

(1) 本文目的在于为初学者提供一个入门的指引。更详细的网络设备配置,应该参考相关的产品和教程。对于 Cisco 思科的产品,建议参加 Cisco Networking Academy 思科网络学院 ...
  • xlh1991
  • xlh1991
  • 2013年06月23日 23:31
  • 1447

用 GNS3 做CCNA网络实验(6)

网络协议Cisco软件测试.net 用 GNS3 做CCNA网络实验(6) 9. 路由实验: OSPF OSPF 路由协议的优点是,它是由 IETF 领导的,不是Cisco的专有...
  • xlh1991
  • xlh1991
  • 2013年06月23日 23:38
  • 769

用 GNS3 做CCNA网络实验(4)

网络协议.net 用 GNS3 做CCNA网络实验(4)   7. 路由实验: 静态路由 Static Routing   (1) 准备实验   我们假定是关闭 GNS3 后重新...
  • xlh1991
  • xlh1991
  • 2013年06月23日 23:36
  • 634

GNS3 L2TP VPN实验详解

  先简单简述一下常用的VPN分类:  主要分为两大类:  第一类:PPTP VPN 、L2TP VPN 、IPSEC VPN.  第二类:SSL VPN  应用区别:  PPTP V...

GNS3-1.4导入虚拟机做实验操作

首先我们甲骨文的VM VirtualBox装两台虚拟机,然后再装好IOU,做好上面的简单拓扑。 但接下来有个问题,就是在用wireshark去捕捉IOU设备的接口时提示错误,估计是GNS3...

Linux下实现思科实验-模拟器使用[图文]-----GNS3----dynamips

注:随便转载,不用注明处处,没啥技术含量。 相信很多人都知道在Windows下,使用模拟器做NA,NP,IE的实验了吧。 DynamipsGUI,我用得最多的就是小凡写的这个,太好了。 Dyna...

CCNA网络系列实验(1)之GNS3安装配置指南

㈠ 安装GNS3          如果安装过程有提示WINPACP已经安装过了,选择“取消”                       ㈡ 配置GNS3基本参数         选择 step1 ...

DHCP的GNS3实验

DHCP(Dynamic Host Configuration Protocol 动态主机配置协议,用于动态提供IP信息): 动态分配:IP、掩码、网关、DNS、租约等 原理: DHCP四个分...

用 GNS3 做CCNA网络实验(7)

软件测试 GNS3 做CCNA网络实验(7) 10. 用 vpcs 做终端PC 与采用路由器做PC相比,vpcs 的最大优点是占用内存小。如果用作模拟实验的电脑的内存只有1GB,...
  • xlh1991
  • xlh1991
  • 2013年06月23日 23:39
  • 676
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:gre tunnel实验(GNS3)
举报原因:
原因补充:

(最多只允许输入30个字)