rp-pppoe not assigning default route (route add default gw ppp0 - fails with: ppp0 Hostname lookup failure)

shaunwingin
shaunwingin used Ask the Experts™
on
Hi,

1. if config show ppp0 with an ip address
2. route shows eth0 as default gw

How do I get ppp0 to be default gw ?

OS is CENTOS

Tx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
route del default
route add default gw w.x.y.z netmask m.n.o.p dev ppp0

w.x.y.z = ip of the gateway
m.n.o.p = subnet mask like 255.255.255.0

Author

Commented:
Probelm is that w.x.y.z = ip of the gateway
is dynamically assigned.....
Commented:
Hmmm...

Try :

route add default ppp0

How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
Where do I add this to keep it after reboot?

Commented:
Add it in
/etc/rc.local
or /etc/init.d/rc.local

(depends of the linux distribution)
Commented:
For centos, this should be in the /etc/rc.local, before the "exit 0;"

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial