[RE] PPPoE(PPP) --> L2TP(PPP) 로 이어지는 방법은?
Reg. Date: April 10, 2003 By 최홍준
조금 잘못 알고 계신것 같습니다.
PPP는 point to point protocol입니다.
따라서 님이 구성하신것과 같이 하기 위해서는 Terminal과 LAC간에 PPP session을 맺어야 하고 LAC와 LNS간에는 L2TP tunnel을 맺어야 합니다.
예전에 cisco 장비를 이용하여 구성한 적이 있는데... 환경자체는 거의 동일 합니다.
따라서 방법을 달리 해보세요..일단 PPP session을 맺어지면 LAC는 이를 강제적으로 해당 가입자를 LNS로 보내 주는 기능이 있어야 합니다.
이를 compulsory L2TP tunneling이라고 하죠.
이 기능을 위해서는 AAA(RADISU) Server를 이용했었는데...LAC/LNS에서 local 인증으로 이 기능이 가능한지는 알수 없네요..
그럼 건투를!!!
>
>
>Terminal LAC LNS
>eth0 ----------------> eth1 eth0------ (Hub)---------eth0
>
>Goal: 아래의 Protocol Flow와 같이 Terminal에서 LNS까지 한번의
> 접속 시도로 이어지도록 한다.
> ppp --> pppoe/ppp --------> l2tp/PPP(same) --> ppp
>
>
>현재 Setting한 환경은 다음과 같다.
>
>[Terminal]
>Windows2000
>eth0: 192.168.1.99
>PPPoE Emulation Application
>
>[LAC]
>Linux
>eth0: 192.168.1.130
>eth1: 10.0.0.2
>pppd, pppoe-server, pppoe are in Linux
>l2tpd from rp-l2tp-0.3
>
>/etc/ppp/pppoe-server-option
>-------------------------------------------------------
># PPP options for the PPPoE server
>noauth
>lcp-echo-interval 10
>lcp-echo-failure 2
>
>/etc/ppp/pap-scret
>-------------------------------------------------------
># Secrets for authentication using PAP
># client server secret IP addresses
>dooly lotto happyday *
>
>/etc/l2tp/l2tp.conf
>-------------------------------------------------------
># comment
># Global section (by default, we start in global mode)
>global
># Load handlers
>load-handler "sync-pppd.so"
>load-handler "cmd.so"
># Bind address
>listen-port 1701
># Configure the sync-pppd handler. You MUST have a "section sync-pppd" line
># even if you don't set any options.
>section sync-pppd
>lns-pppd-opts "noauth 10.0.0.1:10.0.0.2 lcp-echo-interval 30 lcp-echo-failure 6"
>lac-pppd-opts "user hwangsw name lotto noipdefault ipcp-accept-local ipcp-accept-remote
>lcp-echo-interval 30 lcp-echo-failure 6 debug noauth"
># Peer section
>section peer
>peer 192.168.1.1
>port 1701
>lac-handler sync-pppd
>lns-handler sync-pppd
>hide-avps no
># Configure the cmd handler. You MUST have a "section cmd" line
># even if you don't set any options.
>section cmd
>
>[LNS]
>Linux
>eth0: 192.168.1.130
>eth1: 10.0.0.2
>pppd, pppoe-server, pppoe are in Linux
>l2tpd from rp-l2tp-0.3
>conf files are same with LAC's (But, Only Peer IP is differrent)
>
>
>[Done]
>Establish PPPoE Connection (PPP Session) from Terminal to LAC,
> using WinPoET (user: dooly passwd: happyday) => OK!
>Establish L2TP Tunnel and PPP Sessions from LAC to LNS,
> using l2tp-control "start-session 192.168.1.1" command line => OK!
>
>[TODO]
>WinPoET logging를 통해 pppoe(ppp)가 LAC에서 벗겨진 후 LAC에서 LNS까지
>L2TP로 전달된 PPP를 그대로 넘겨줄 수 있는 방법이 없을까요?
>아니면 위의 환경에서 특별히 신경써야 하는 일의 순서가 있을까요?
>
>Please, reply to me if anybody have some idea..
>Notice: All Network configued by Ethernet.. (LAN to LAN)
>
>
>