首页 > 学院 > 网络通信 > 正文

Tunnel的具体配置

2019-11-04 20:40:59
字体:
来源:转载
供稿:网友

  GRE Tunnel
  The second PRocedure is to set up the GRE tunnel and route ipX through it to the Cisco 1600. This procedure involves creating the tunnel interface on both routers. The Ethernet 0 of the Cisco 1600 and the Ethernet 1/1 of the Cisco 7206 are the endpoints of the tunnel. It will be a simple IP GRE tunnel.
  1. Configure the tunnel interface of the Cisco 7206:
  central7206#conf t
  Enter configuration commands, one per line. End with CNTL/Z.
  central7206(config)#interface tunnel 0
  central7206(config-if)#tunnel source e 1/1
  central7206(config-if)#tunnel destination 192.168.113.2
  central7206(config-if)#
  %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up
  2. Configure the tunnel interface of the Cisco 1600:
  home1600#conf t
  Enter configuration commands, one per line. End with CNTL/Z.
  home1600(config)#interface tunnel 0
  home1600(config-if)#tunnel source Ethernet 0
  home1600(config-if)#tunnel destination 192.168.114.2
  home1600(config-if)#
  %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up
  IPX through GRE
  1. Enable IPX routing on the Cisco 1600:
  home1600(config)#ipx routing
  home1600(config)ipx router rip
  home1600(config-ipx-router)#network 1681130
  home1600(config-ipx-router)#network 1681131
  2. Turn on the IPX networks on its Ethernet and tunnel interfaces:
  home1600(config)#interface ethernet 0
  home1600(config-if)#ipx network 1681130
  home1600(config-if)#interface tunnel 0
  home1600(config-if)#ipx network 1681131
  3. Turn on IPX network 1681131 on the tunnel interface of the Cisco 7206:
  central7206(config)#interface tunnel 0
  central7206(config-if)#ipx network 1681131
  4. Turn on IPX Routing Information Protocol (RIP) on the Cisco 7206, and enable route redistribution:
  central7206(config)#ipx router rip
  central7206(config-ipx-route)#redistribute eigrp 2
  central7206(config-ipx-route)#network 1681131
  central7206(config-ipx-route)#ipx router eigrp 2
  central7206(config-ipx-route)#redistribute rip

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表