adsl is connected but not routed
Hello!
I am running linux redhat 7.2 network server with squid cache.
adsl is connected and i can see ppp0 is up.
but every time i reboot my system or after an electricity failure here in my city, i have to do these commands to bring my ppp0 routed to clients.
root] route del default
root] route add default gw x.x.x.x (x.x.x.x is ip of ppp0 wich is assigned by DHCP server of ISP)
how to make the "default route gw" the same as -.-.-.- with auto function. i mean i don't have to run the command every time.
now when the system is rebooted the "route -nv" brings this result
#root] route -nv
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.x.x 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 x.x.x.x 0.0.0.0 UG 0 0 0 lo
Thanks.
|