I may just be reading the wrong FM, but I've tried the man page, Handbook, a ppp.conf.sample from elsewhere, and all sorts of Google searches (which produce multiple wrong answers), and this topic just doesn't seem to be covered anywhere. I may be missing something obvious due to terminology!
I'm using user-ppp (just the normal base system ppp, the Brian Somers one, PPP Version 3.4.2) to create a PPPoE tunnel. It works fine. LCP gives the config stuff as required, and a bit of tweaking to ppp.conf and it adds it to the routing table and so on.
My problem is that there's a /29 available on the tunnel. How do I add the aliases?
From the command line the following works (assume /29 is 1.2.3.0/29 and remote (i.e. HISADDR) is 9.9.9.9:
ifconfig wan0 alias 1.2.3.1/32 9.9.9.9
ifconfig wan0 alias 1.2.3.2/32 9.9.9.9
....
(NB. the position of "alias" isn't critical).
It would be better to set this automatically in /etc/ppp/ppp.linkup, and documentations suggests this, but doesn't say how. I've read various ideas that don't work.
add 1.2.3.1/32 - nope, this creates a route!
alias 1.2.3.1 - nope, creates a "deprecated" warning and doesn't appear to do anything.
! ifconfig wan0 alias 1.2.3.1/32 HISADDR - (and variations, with ! or not) all lead to error message in log.
I've also tried the above in ppp.conf itself, no dice. Incidentally, HISADDR isn't static but all other IP addresses involved are. I am NOT using ppp's built in NAT (pf for that kind of thing).
If anyone knows the answer I'd appreciate it, and I'd also appreciate a pointer to the documentation that covers this.
I'm using user-ppp (just the normal base system ppp, the Brian Somers one, PPP Version 3.4.2) to create a PPPoE tunnel. It works fine. LCP gives the config stuff as required, and a bit of tweaking to ppp.conf and it adds it to the routing table and so on.
My problem is that there's a /29 available on the tunnel. How do I add the aliases?
From the command line the following works (assume /29 is 1.2.3.0/29 and remote (i.e. HISADDR) is 9.9.9.9:
ifconfig wan0 alias 1.2.3.1/32 9.9.9.9
ifconfig wan0 alias 1.2.3.2/32 9.9.9.9
....
(NB. the position of "alias" isn't critical).
It would be better to set this automatically in /etc/ppp/ppp.linkup, and documentations suggests this, but doesn't say how. I've read various ideas that don't work.
add 1.2.3.1/32 - nope, this creates a route!
alias 1.2.3.1 - nope, creates a "deprecated" warning and doesn't appear to do anything.
! ifconfig wan0 alias 1.2.3.1/32 HISADDR - (and variations, with ! or not) all lead to error message in log.
I've also tried the above in ppp.conf itself, no dice. Incidentally, HISADDR isn't static but all other IP addresses involved are. I am NOT using ppp's built in NAT (pf for that kind of thing).
If anyone knows the answer I'd appreciate it, and I'd also appreciate a pointer to the documentation that covers this.