Cisco 路由配置 L2TP拨号,并建立GRE ipv6隧道

基本网络结构
网络拓扑结构

Router#show run
Router#show running-config
Building configuration…

Current configuration : 1947 bytes
!
! Last configuration change at 03:05:52 UTC Thu Dec 19 2019
!
version 15.5
service timestamps debug datetime msec
service timestamps log datetime msec
no platform punt-keepalive disable-kernel-core
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
vrf definition Mgmt-intf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
enable password 123
!
no aaa new-model
!

ip dhcp pool ipv4
network 192.168.88.0 255.255.255.0
default-router 192.168.88.1
dns-server 8.8.4.4 ——————————————————
!
!
!
ipv6 unicast-routing
ipv6 dhcp pool ipv6
address prefix 2404:F880:FFFF:FFF7::/64
dns-server 240C::6666
dns-server 2001:4860:4860::8888
domain-name ipv6——————————————————————ipv6 和ipv4 的DHCP 配置

ipv6 unicast-routing ——————————————————————————Cisco ipv6 开关,使用前必须开启
l2tp-class cisco 开启l2tp拨号功能
!
subscriber templating
multilink bundle-name authenticated
!
license udi pid ISR4321/K9 sn FDO2231093X
!
spanning-tree extend system-id
!
!
redundancy
mode none
!
!
vlan internal allocation policy ascending
!
pseudowire-class class——————————————————————开启拨号模式:l2tp
encapsulation l2tpv2
ip local interface GigabitEthernet0/0/1
!
!
interface Tunnel3
no ip address
ipv6 address FED0:2019:12:19::2/126
ipv6 enable
tunnel source 11.10.30.76
tunnel mode ipv6ip
tunnel destination 11.10.30.1
!
interface GigabitEthernet0/0/0
ip address 192.168.2.1 255.255.255.0
ip nat inside
negotiation auto
!
interface GigabitEthernet0/0/1
ip address 192.168.88.1 255.255.255.0
ip nat inside
negotiation auto
ipv6 address 2404:F880:FFFF:FFF7::A/64
ipv6 enable
ipv6 dhcp server ipv6————————————————配置 ipv6 和ipv4 的IP地址 并开启DHCP 功能
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
shutdown
negotiation auto
!
interface Virtual-PPP1————————————————————————l2tp 拨号配置
ip address 11.10.30.76 255.255.255.0
ip nat outside
ppp chap hostname ipv6test2
ppp chap password 0 123456
pseudowire 183.3.185.33 1 encapsulation l2tpv2 pw-class class————————server段IP地址
!
interface Vlan1
no ip address
shutdown
!
ip nat inside source list 99 interface Virtual-PPP1 overload————————————————l2tp 虚拟拨号配置
ip forward-protocol nd
no ip http server
no ip http secure-server
ip tftp source-interface GigabitEthernet0
ip route 0.0.0.0 0.0.0.0 Virtual-PPP1
ip route 183.60.4.153 255.255.255.255 192.168.1.1
ipv6 route ::/0 FED0:2019:12:19::1————————————————————————ipv4 和 ipv6 默认路由
!
!
access-list 99 permit 192.168.2.0 0.0.0.255
access-list 99 permit 192.168.88.0 0.0.0.255 ————————————————ACL 上网网段 ,使用 10.10.30.76 出去上网
!
!
!
control-plane
!
!
line con 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
password 123
login
!
!
end

Router#$ show ipv6 int bri
GigabitEthernet0/0/0 [up/up]
unassigned
GigabitEthernet0/0/1 [up/up]
unassigned
GigabitEthernet0 [administratively down/down]
unassigned
Tunnel3 [up/up]
FE80::A0A:1E4C
FED0:2019:12:19::2
Virtual-PPP1 [up/up]
unassigned
Vlan1 [administratively down/down]
unassigned

猜你喜欢

转载自blog.csdn.net/Connor_xie/article/details/103612011