If you use the kernel mode pppoe, you can ifconfig add them as an
alias to the interface, you might be able to do the same to the tun
interface, see if it works...

You are showing your roots, tun0:0 and tun0:1 are Linux naming
conventions, here in OpenBSD we just add addresses to the device
itself as 'aliases' aka:

  # ifconfig fxp0 inet 1.2.3.4 netmask 255.255.255.0
  # ifconfig fxp0 inet alias 1.2.3.5 netmask 255.255.255.0
  # ifconfig fxp0 inet alias 1.2.3.6 netmask 255.255.255.0
  # ifconfig fxp0
  fxp0: flags=...
  [..]
        inet 1.2.3.4 netmask 0xffffff00 broadcast 1.2.3.255
        inet 1.2.3.5 netmask 0xffffff00 broadcast 1.2.3.255
        inet 1.2.3.6 netmask 0xffffff00 broadcast 1.2.3.255

For further reading see ifconfig(8), hostname.if(5), and
pppoe(4) (as opposed to pppoe(8)).

Penned by Scott McEachern on 20090525 11:26.33, we have:
> Hello all,
>
> I currently have a single line DSL connection with my ISP and I am  
> considering getting a 2nd IP from them for a second domain.  The DSL  
> modem  (a speedtouch 516 which has a single ethernet connection to the  
> LAN) is in bridge mode so the OpenBSD firewall handles the  
> connection/authentication.
>
> I was wondering if there is a way to have ppp/pppoe bind a second IP  
> address to one DSL connection?  And if this is possible, would the IPs  
> then be bound to tun0:0 and tun0:1?  I cannot find an answer to this in  
> my research.
>
> This is my current setup for a single IP, which works wonderfully:
>
> In /etc/rc.local:
>
> if [ -f /is_fw0 ]; then
>    echo -n ' PPPoE ';
>    ppp -ddial pppoe
>    sleep 2
> fi
>
> In /etc/ppp/ppp.conf:
>
> default:
> set log Phase Chat IPCP CCP tun command
> set redial 3 0
> set reconnect 5 100000
>
> pppoe:
> set device "!/usr/sbin/pppoe -i ne3"
> set mtu 1492
> set mrru 1524
> set speed sync
> set cd 5
> set dial
> set login
> set timeout 0
> set authname myusername
> set authkey mypassword
> add! default HISADDR
> enable dns
> enable mssfixup
>
>
>
> -- 
>
> - RSM
>
> http://erratic.ca

-- 
Todd Fries .. t...@fries.net

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                 \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| "..in support of free software solutions."  \          250797 (FWD)
|                                             \
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

Reply via email to