Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to keep enable eth0 and pppoe connection at the same time. When i connect my broadband cable in eth0 port, it shows ip detected in eth0 (ifconfig). Now when i connect dsl connection eth0's ip goes away and a new interface added named pppoe with different ip address. How to enable both interface in the same time? Windows can keep both enable at the same time.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I have solved the problem. I am answering my own question for future reference.

Steps:

1. Connect DSL connection using network manager
2. Connect eth0 interface: sudo udhcpc -i eth0
3. To check current routing: route -n
4. Two interface introduce two default gateway. To access internet remove local  default gateway: sudo route del default gw 172.100.0.1 (for my network)
5. Add routing rule to access ftp servers(172.100.0.0/24 for my network): sudo route add -net 172.100.0.0/24 gw 172.100.0.1 eth0

After doing the above steps, eth0 and pppoe0 both should have IP address.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.