l2tp etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
l2tp etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

19 Ağustos 2015 Çarşamba

PPP Session Transport - bba-group

Hai!

I hope this is last thing for L2TP stuff.


As you know ; PPPoE is the predominant access protocol in broadband networks worldwide. 

In real life our access network topology almost like ;

DSL Modem <-- dsl_line --> [vlan_5 DSLAM dot1q_trunk] <---uplink---> [fa0/0.5 C7200 fa0/0] <----IP--->[LNS Router]

DSLAM provides mult-taging for every each of customer
I eliminate the DSLAM device and connect CPE to LAC directly.






What we got here....

CPE > OK
In Cisco literature, LAC is remote customer-end,LAC OK
LNS > ISP Site OK

CPE :

Compared to the server configuration, creating a client is far less complicated.

First, we will create a dialer interface to handle the PPPoE connection

interface Dialer0
 ip address negotiated 
 ip mtu 1452 
 encapsulation ppp
 dialer pool 1
 ppp authentication chap callin
 ppp chap hostname router1@cisco.com
 ppp chap password 0 cisco
 !
interface Loopback0
 description emulating lan side interface
 ip address 22.22.22.22 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 pppoe enable group global
 pppoe-client dial-pool-number 1
!

  •  ip mtu 1452 : Normal MSS is 1500 bytes. But you have to account for the 40 byte IP header and the 8 byte PPPoe header. That gets you to 1452
  • We enabled pppoe on  WAN interface (fa0/0), and attached a dialer pool number. 
  • This number allows us to assign our virtual interface, Dialer0
  •  
  • On Dialer interface , we specified the hostname & password.  
  • This is the username and password we will authenticate on our Layer 2 Network Access Server (LNS).
  • The last part of the config adds a default route pointing out our WAN interface.
  • Loopback represents LAN > Optional, I will us it for static routing from LNS
 

LAC : 

vpdn enable
!
vpdn-group PPPoEUsers
 request-dialin
  protocol l2tp
  domain cisco.com
 initiate-to ip 172.23.54.16
 local name LAC
 l2tp tunnel password 0 test
!
bba-group pppoe deniz
 virtual-template 1
!
!
interface Loopback0
 ip address 172.23.54.16 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 pppoe enable group deniz
!
interface FastEthernet0/1
 ip address 30.10.20.42 255.255.255.0
!
interface Virtual-Template1
 ip unnumbered Loopback0
 ppp authentication chap
 



 DSL Session passes LAC from interface 0/0  that we enable pppoe session.

 Broadband Aggregation (BBA) group that will handle incoming PPPoE connections.
The profile binds incoming sessions to our virtual-template 1.
Users assigned to this profile will then use loopback0 to source their l2tp tunnel to the LNS.

 As our CPE router is using a domain of cisco.com, their session will hit the vpdn-group PPPoEUsers.
The LAC then builds a L2TP tunnel to our LNS (30.10.20.43), specifying the credentials in our local name & password.



LNS :

aaa new-model
!
aaa authentication ppp default local
!
vpdn enable
!
vpdn-group 1
 accept-dialin
  protocol l2tp
  virtual-template 1
 terminate-from hostname LAC
 local name LNS
 l2tp tunnel password 0 test
!
username router1@cisco.com password 0 cisco
!
interface Loopback0
 ip address 172.17.17.17 255.255.255.255
!
interface FastEthernet0/1
 ip address 172.23.54.17 255.255.255.0
!
interface Virtual-Template1
 ip unnumbered Loopback0
 peer default ip address pool default
 ppp authentication chap
!
!
ip local pool default 10.1.1.1 10.1.1.16
ip route 22.22.22.0 255.255.255.0 10.1.1.1
 
 


To operate properly, the virtual template will need two components: 

an IP address and a pool of IP addresses that will be used to issue negotiated addresses to clients. 



LNS Config Explination
  • The authentication commands at the top allow the customers username/password credentials to be authenticated on this local router.
  •  The vdpn-group configuration is used to build the lt2p tunnel to our LAC.
  • The virtual template allows us to bind a terminating IP for the customers session & dynamically assign a frame IP (WAN IP for their dialer 0 interface on their local router) from a pool of IP addresses specified in the pool named “default”.
  • The route statement was just enables internet users to route to the LAN side IP address.
10.1.1.1 > CPE's first public address  :)



L2TP - Lab Example

Hi Fellas,









Here we got yellow ISP, most important thing, customers want you to bridge their Layer 2 network.
You have just IP network, not MPLS ( Fuck we are not able to use VPLS ! ), that's the  time for L2TP.

I will configure manuel L2 Tunnels instead of dynamic and I am not going to use l2tp class authentication.


For  PE 1 :

pseudowire-class test
 encapsulation l2tpv3
 protocol none
 ip local interface Loopback0


interface FastEthernet0/0
 no ip address
 speed 100
 full-duplex
 no cdp enable
!
interface FastEthernet0/0.5
 encapsulation dot1Q 5
 no cdp enable
 xconnect 100.0.0.33 15 encapsulation l2tpv3 manual pw-class test
  l2tp id 1 2

For PE2 :

pseudowire-class test
 encapsulation l2tpv3
 protocol none
 ip local interface Loopback0

interface FastEthernet0/1
 no ip address
 speed 100
 full-duplex
 no cdp enable
!        
interface FastEthernet0/1.5
 encapsulation dot1Q 5
 no cdp enable
 xconnect 100.0.0.11 15 encapsulation l2tpv3 manual pw-class test
  l2tp id 2 1

l2tp id : x y

x: local
y: remote

Also we can use the authentication for both sites;

l2tp-class sifre
 hostname deniz
 password 7 040A59555B

Just be sure that

under the pseudowire-class test section; define as
 protocol l2tpv3 sifre

so you are good  to go, Cust 1 and Cust 2 can ping each other for Vlan 5 .



  My next lab will be,

PPP Session transport with L2TP .

Cya !


L2TP - About General DSL Technology

Hi Fellas,

I am going to write something about xDSL Tech;


Customer1-to-BRAS





Consider those beautiful ATM Clouds as "IP" Please !

Cisco CCIE v5 exam makes us responsible to learn such DSL issues ; access group (a bba-group) that configuring broadband connection on ISP site. (I will share the lab in a couple of days)

Whatever...

In this scenerio, we use Cisco Router with (WIC card is using also it should be HWIC-1ADSL-M compatible ADSL, ADSL2 and ADSL2+ for Annex A) as home regulare CPE (modem) right?

The cloud represents there are lots of customers like us that is big, fluffy cloud.



25pin Amphenol Cable





Customer end is RJ 11, DSLAM connection is RJ 21. Thats how we connect multiple customers to single point on IP-DSLAM.


PPP Sessions Through Third-Party ISP





l2tp

What is third party ISP  ?

ILEC - Independent Local Exchange Carrier - these are the companies that own the actual lines out on the pole or buried in the ground.

CLEC - Competitive Local Exchange Carrier - these are the companies that have the equipment to provide you 3rd party service over the ILEC lines.





The PPP session is initiated from the customer, it includes some authentication parameters, such as the CHAP username and password. Typically the username would contain a domain name such as stevegarbett@plusnet.net and some random password.

 Than we need a way of tunneling the layer 2 ppp session over towards the 3rd-party ISP’s route , after that  the ISP authenticates the customers PPP credentials, which then gives the customer access to the service provider network.






18 Ağustos 2015 Salı

L2TP - Layer 2 Transport Protocol

Hi Fellas,

Today, we got chief's special recipe ;  L2TP protocol.

Mostly used on IP/MPLS Service Providers. Attention , I wrote IP/MPLS which provides IP and MPLS separately because L2TP uses just IP platform.

- Remote users can access a VPN over a public IP network without a gateway ( What ? Some kind of P2PTP VPN Tech without using VRF , RD,RT, COOL ! )

- We use L2TP as Point to Point Protocol

-  L2TP is a tunneling protocol, it's kinda like GRE or something but L2TP is able to tunnel L2 stuff.....Ethernet, frame-relay, ATM, etc. A tunnel like GRE can only encapsulate layer 3 (IP) traffic.

-We use it to tunnel L2 over a L3 network. For example, a service provider has a L3 network and a customer that wants to connect two sites. Let's say they want to bridge their LAN over the service provider network. With L2TP, you can do that...

- L2TP protocol uses UDP port 500 ( which is more easily blocked by NAT firewalls, and may therefore require port forwarding to get rid off such kind of problems

-  It doesn't provide any encryption stuff ( We can define IPSec, If we want to hide infos from customer network grid)


L2TP is generally deployed for such these cases;


---- Carrying PPP Session Through Service Provider Network



This shits is so old - legacy ATM WAN Network.


Cisco , Network , CCNA , CCNP , Router , Switch , Firewall

Protocol Stacking
for L2TP Subscribers in Pass-Through Mode




Originates L2TP Tunneling for PPP Session

LAC (L2TP Access Concentrator) : Originates L2TP Tunneling for PPP Session
LNS (L2TP Network Server) : Terminates L2TP Tunneling for PPP Session


The LAC and LNS are the two endpoints of the tunnel, normally the LAC is on the customer side and the LNS is the service provider side. It could be a router or another device.


To sum, L2TP is used to carry PPP sessions through IP/MPLS network.





Cust1 is able to see and connect Cust2 Local Routes as VPN services with using L2TPv3 .


-  L2TPv3 is an industry-standard Layer 2 tunneling protocol that ensures interoperability among vendors

- L2TPv3 does not require Multiprotocol Label Switching (MPLS) 

- L2TPv3 supports Layer 2 tunneling over IP for any payload 

- To enable Simple Network Management Protocol (SNMP) notifications of L2TP session up and down events, enter the snmp-server enable traps l2tun session command before configuring L2TPv3.