pppoe comes up - but can't reconnect
freebsd at edvax.de
Fri May 2 06:03:19 UTC 2014
On Thu, 01 May 2014 19:19:27 -0400, Fbsd8 wrote:
> > [...]
> > the line
> > set ifaddr 18.104.22.168 22.214.171.124
> > states my statis IP address followed by the connection address at my
> > sevice provider I am guess - but my service providers address changes
> > right now it is 126.96.36.199
> > Any pointers or comments would be useful.
> # If your ISP assigns you an (dynamic) different IP address each time
> # you log in, then use the following statement. If your ISP issued you
> # a (static never changes) IP address to use every time you log in, then
> # comment out the next statement and uncomment the statements following it.
> # Get dynamic IP address from ISP if that's how they do it.
> set ifaddr 0.0.0.0/0 0.0.0.0/0 0.0.0.0 0.0.0.0
> # Use static IP address from ISP if that's how they do it.
> # Set static IP address your ISP assigned to you.
> # s.s.s.s = your static IP address
> # set ifaddr s.s.s.s 0.0.0.0/0 0.0.0.0 0.0.0.0
I've been using a PPPoE connection for many years. This is
what my configuration looked like:
set device PPPoE:rl0
set authname myusername at ispname.de
set authkey mypassword
add default HISADDR
I simply added this block at the end of ppp.conf and didn't
modify anything else. In /etc/rc.conf, I simply defined
so the PPPoE connection would come up on system start and
would be re-initialized in case it dropped. The network
interface rl0 just needed to be up, no further configuration,
the tunnel interface tun0 would then be assigned the IP
depending on what the ISP transmitted.
It shouldn't be hard to get something similar working today. ;-)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions