pppoeconf question

d0b33

Honorary Master
Joined
Jul 16, 2004
Messages
17,506
Reaction score
493
Location
Western Cape
Is there a command that I can run to show me the current active connection in terminal?
I use pon/poff to connect disconnect but sometimes I'm not sure which connection is active.
 
ps - ef | grep pppoe | grep international

Above will output the pppoe process' and further filter it to show the lines with international only.

But, you should have set the connections so that ppp1 is always "international" and ppp2 is always "local", or whichever way you prefer.
You can do this by adding the line:
unit 1
in the correct file in /etc/ppp.
unit 1 = ppp1
unit 2 = ppp2
So, in the international file, put the line unit 1, and international will always be ppp1, then you can use ifconfig and lookout for ppp1.
 
ps - ef | grep pppoe | grep international

Above will output the pppoe process' and further filter it to show the lines with international only.

But, you should have set the connections so that ppp1 is always "international" and ppp2 is always "local", or whichever way you prefer.
You can do this by adding the line:
unit 1
in the correct file in /etc/ppp.
unit 1 = ppp1
unit 2 = ppp2
So, in the international file, put the line unit 1, and international will always be ppp1, then you can use ifconfig and lookout for ppp1.

Thanks, will give it a shot.
 
Top
Sign up to the MyBroadband newsletter
X