how can i set the pptp and pppoe use different network segments

PPTP related questions
Post Reply
digger

how can i set the pptp and pppoe use different network segments

Post by digger »

how can i set the pptp and pppoe use different network segments

my configure is

################
[pppoe]
verbose=1
called-sid=mac
#tr101=1
#padi-limit=0
ip-pool=pppoe
ipv6-pool=pppoev6
ipv6-pool-delegate=pppoedele
interface=eth1

[ip-pool]
gw-ip-address=192.168.1.1
#vendor=Cisco
#attr=Cisco-AVPair
attr=Framed-Pool
#192.168.0.2-255
192.168.1.2-255,name=pppoe
192.168.1.2-255,name=pptp
192.168.1.2-255,name=l2tp
################
If I set pptp l2tp and pppoe to different network segments, how should the gateway be set?

[ip-pool]
gw-ip-address=192.168.1.1??
#vendor=Cisco
#attr=Cisco-AVPair
attr=Framed-Pool
#192.168.0.2-255
192.168.1.2-255,name=pppoe
192.168.10.2-255,name=pptp
192.168.20.2-255,name=l2tp
dimka88
Posts: 861
Joined: 13 Oct 2014, 05:51
Contact:

Re: how can i set the pptp and pppoe use different network segments

Post by dimka88 »

As you know, pptp, l2tp and pppoe are ppp protocols, so it is p2p and clients have /32. GW can be not from the same IP segment. If you want different GW for different protocols, you can run multiple daemons with configured protocol pr daemon.
Post Reply