Sample Header Ad - 728x90

Naming PPP interfaces

7 votes
5 answers
10104 views
I have two PPP peers, dsl-line1 and dsl-line2 which are configured with pppd on Ubuntu (Server) Linux. They are brought up by the /etc/network/interfaces file with the auto thingy however each PPP connection chooses the name pppX where X varies depending on which comes up first. I would like to make it such that dsl-line1 comes up with a name such as "dsl0" and dsl-line2 with a name like "dsl1" so that I can create firewall rules more easily for each and set up routing (as well as having it easier to configure). My question is how can I get the pppd's interfaces to name themselves? /etc/ppp/peers/dsl-line1 (dsl-line2 is basically the same apart from the default route being removed and the ethernet interface being different) noipdefault defaultroute replacedefaultroute hide-password #lcp-echo-interval 30 #lcp-echo-failure 4 lcp-echo-interval 10 lcp-echo-failure 3 noauth persist #mtu 1492 #persist #maxfail 0 #holdoff 20 plugin rp-pppoe.so eth1 user "xxxx@xxxx.xxx" /etc/network/interfaces (the line1 part, again, 2 is very similar) auto dsl0 iface dsl0 inet ppp pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf post-up /bin/sh /home/callum/ppp0_up.sh # Route everything post-up /bin/sh /etc/miniupnpd/ppp0_up.sh # Start miniupnpd (if not alr$ provider dsl-line1 Thanks in advance.
Asked by CallumA (163 rep)
Jul 21, 2014, 12:30 PM
Last activity: Oct 6, 2023, 10:57 PM