PPPoE over L2TP: LAC and LNS



!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Client_PPPoE
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 15
ip cef
!
!
!
!
!
!
!
!
interface Ethernet0
 ip address 192.168.0.1 255.255.255.248
 no ip redirects
 no ip proxy-arp
 ip nat inside
 half-duplex
!
interface FastEthernet0
 no ip address
 no ip redirects
 no ip proxy-arp
 speed auto
 pppoe enable
 pppoe-client dial-pool-number 1
!
interface Dialer1
 ip address negotiated previous
 ip nat outside
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp chap password 0 pass
 ppp pap sent-username client@adsl password 0 pass
!
ip route 0.0.0.0 0.0.0.0 Dialer1
!
no ip http server
ip nat inside source list 1 interface Dialer1 overload
!
access-list 1 permit 192.168.0.0 0.0.0.7
dialer-list 1 protocol ip permit
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 login
!
end

!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
no service dhcp
!
hostname LAC
!
boot-start-marker
boot-end-marker
!
no logging console
!
aaa new-model
!
!
aaa authorization subscriber-service default local
aaa accounting network default none
!
!
!
!
aaa session-id common
ip subnet-zero
no ip source-route
!
!
ip tcp ecn
ip tcp selective-ack
no ip domain lookup
!
!
ip cef
!
!
subscriber authorization enable
service-policy type control PPP-ACCESS
vpdn enable
!
vpdn-group LAC
 request-dialin
  protocol l2tp
  domain adsl
 initiate-to ip 10.0.0.2
 source-ip 10.0.0.1
 local name LAC
 l2tp tunnel password 0 tunpass
!
call rsvp-sync
no virtual-template subinterface
!
!
!
!
!
archive
 log config
  logging enable
  logging size 1000
  notify syslog
no file verify auto
username root secret 5 $1$21p6$GytfzAHHWReZRTm7FuWHR0
!
class-map type control match-all PPP
 match protocol ppp
!
policy-map type service L2TP-SERVICE
 service vpdn group LAC
!
policy-map type control PPP-ACCESS
 class type control PPP event session-start
  1 service-policy type service name L2TP-SERVICE
 !
!
!
bba-group pppoe PPPoE
 virtual-template 1
!
!
interface Loopback0
 ip address 172.16.0.1 255.255.255.255
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
!
interface FastEthernet0/0
 no ip address
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 speed auto
 duplex auto
!
interface FastEthernet0/0.1
 description PPPoE
 encapsulation dot1Q 1 native
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 pppoe enable group PPPoE
 no cdp enable
!
interface FastEthernet0/1
 no ip address
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 speed auto
 duplex auto
 no cdp enable
!
interface FastEthernet0/1.1
 encapsulation dot1Q 1 native
 ip address 10.0.0.1 255.255.255.252
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 no cdp enable
!
interface Virtual-Template1
 ip unnumbered Loopback0
 ip verify unicast source reachable-via rx
 no ip redirects
 no ip proxy-arp
 ip mtu 1492
 ip tcp adjust-mss 1452
 service-policy type control PPP-ACCESS
!
router eigrp 1
 passive-interface default
 no passive-interface FastEthernet0/1.1
 network 10.0.0.0 0.0.0.3
 network 172.16.0.1 0.0.0.0
 no auto-summary
!
ip classless
!
no ip http server
!
!
no cdp run
!
snmp-server ifindex persist
!
!
control-plane
!
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
!
end
!



version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
no service dhcp
!
hostname LNS
!
boot-start-marker
boot-end-marker
!
no logging console
!
aaa new-model
!
!
aaa authentication login CONSOLE none
aaa authentication ppp default local
aaa authorization network default if-authenticated
aaa accounting delay-start all
!
!
!
!
aaa session-id common
ip subnet-zero
no ip source-route
!
!
ip tcp ecn
ip tcp selective-ack
no ip domain lookup
!
!
ip cef
!
!
vpdn enable
!
vpdn-group LNS
 accept-dialin
  protocol l2tp
  virtual-template 1
 terminate-from hostname LAC
 source-ip 10.0.0.2
 local name LNS
 l2tp tunnel password 0 tunpass
!
call rsvp-sync
no virtual-template subinterface
!
!
!
!
!
archive
 log config
  logging enable
  logging size 1000
  notify syslog
no file verify auto
username root secret 5 $1$VZVs$Ysvvlfj2zmXjzFppAg5QD.
username client@adsl password 0 pass
!
!
!
interface Loopback0
 ip address 172.16.0.2 255.255.255.255
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
!
interface FastEthernet0/0
 no ip address
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 speed auto
 duplex auto
!
interface FastEthernet0/0.1
 encapsulation dot1Q 1 native
 ip address 10.0.0.2 255.255.255.252
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 no cdp enable
!
interface FastEthernet0/1
 no ip address
 no ip redirects
 no ip proxy-arp
 no ip mroute-cache
 speed auto
 duplex auto
!
interface Virtual-Template1
 ip unnumbered Loopback0
 ip verify unicast source reachable-via rx
 no ip redirects
 no ip proxy-arp
 ip mtu 1450
 ip tcp adjust-mss 1410
 peer default ip address pool POOL
 ppp authentication pap callin
 ppp eap refuse
 ppp chap refuse
 ppp ms-chap refuse
 ppp ms-chap-v2 refuse
!
router eigrp 1
 passive-interface default
 no passive-interface FastEthernet0/0.1
 network 10.0.0.0 0.0.0.3
 network 172.16.0.2 0.0.0.0
 network 192.168.254.0 0.0.0.7
 no auto-summary
!
ip local pool POOL 192.168.254.0 192.168.254.7
ip classless
!
no ip http server
!
!
logging history debugging
!
snmp-server ifindex persist
!
radius-server attribute 44 include-in-access-req
radius-server attribute 8 include-in-access-req
!
control-plane
!
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
!
end

Комментарии

Популярные сообщения из этого блога

streaming multicast IPTV to HLS (nginx+RTMP)

using pg_partman to help partitioning postgresql for zabbix