6

6 to 4 隧道实验

 3 years ago
source link: http://www.dengfm.com/15259369387492.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

6 to 4 隧道实验

15497306650525.jpg
图 1-1

注:如无特别说明,描述中的 R1 或 SW1 对应拓扑中设备名称末尾数字为 1 的设备,R2 或 SW2 对应拓扑中设备名称末尾数字为 2 的设备,以此类推;另外,同一网段中,IP 地址的主机位为其设备编号,如 R3 的 g0/0 接口若在 192.168.1.0/24 网段,则其 IP 地址为 192.168.1.3/24,以此类推


  1. 按照图示配置 IPv4 及 IPv6 地址,本实验中 IPv6 地址为 6 to 4 地址格式
  2. 在 R1 和 R3 上配置 IPv4 默认路由使 IPv4 网络部分连通
  3. 在 R1 和 R3 上配置 6 to 4 隧道
  4. 在 R1 和 R3 上配置 IPv6 默认路由,指向 6 to 4 的 Tunnel 口
  5. 两端 IPv6 主机能够跨越 IPv4 网络连通

  1. 配置 IP 地址部分略

  2. 配置 IPv4 默认路由部分略

  3. 在 R1 和 R3 上配置 6 to 4 隧道

    步骤 1:在 R1 上创建 6 to 4 的 Tunnel 口,配置 6 to 4 格式的 IPv6 地址,并指定封装的源地址为 G0/1 口地址

    [R1]interface tunnel 0 mode ipv6-ipv4 6to4
    [R1-Tunnel0]ipv6 address 2002:6401:101:2::1 64
    [R1-Tunnel0]source g0/1
    

    步骤 2:在 R3 上创建 6 to 4 的 Tunnel 口,配置 6 to 4 格式的 IPv6 地址,并指定封装的源地址为 G0/0 口地址

    [R3]interface tunnel 0 mode ipv6-ipv4 6to4
    [R3-Tunnel0]ipv6 address 2002:6402:203:2::1 64
    [R3-Tunnel0]source g0/0
    
  4. 在 R1 和 R3 上配置 IPv6 默认路由,指向 6 to 4 的 Tunnel 口

    [R1]ipv6 route-static :: 0 tunnel 0
    
    [R3]Ipv6 route-static :: 0 tunnel 0
    
  5. 两端 IPv6 主机能够跨越 IPv4 网络连通

    在 PC4 上 Ping PC5,可以 PING 通

    [PC4]ping ipv6 2002:6402:203:1::5
    
    56 bytes from 2002:6402:203:1::5, icmp_seq=0 hlim=64 time=25.000 ms
    56 bytes from 2002:6402:203:1::5, icmp_seq=1 hlim=64 time=11.000 ms
    56 bytes from 2002:6402:203:1::5, icmp_seq=2 hlim=64 time=7.000 ms
    56 bytes from 2002:6402:203:1::5, icmp_seq=3 hlim=64 time=8.000 ms
    56 bytes from 2002:6402:203:1::5, icmp_seq=4 hlim=64 time=19.000 ms
    

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK