How to set (or delete) default gateway at boot?
Hi all.
I just installed VectorLinux 6.0 on an old machine. It works fast and good, but I have an issue with the ADSL connection: every time I use pppoe-start to connect, the connection is established but I cannot access internet. I found that I have to delete the default gateway - which is automatically set-up at boot to 192.168.1.1 - and let pppoe to set it for me (to 0.0.0.0). Here's the question: since I'd like to avoid to run the route del default command every time, how can I set it up at boot time? I already tried to change the GATEWAY variable in /etc/rc.d/rc.route and /etc/rc.d/function-network, but it doesn't work (the defauly gateway is still 192.168.1.1). Here's is another question: is there a tool to start the ADSL connection without running pppoe-start from the command line? Something like kinternet for KDE. I'm using XFCE4. Thank you. |
route add -net 192.168.1.0/24 gw gatewayaddress
add this on /etc/rc.local is this not suitable for your situation? |
Nope. It doesn't work. I tried your command but the default gateway is still 192.168.1.1. At this point it looks like it is set after boot, but I cannot find where it is set up. Thanks anyway.
|
From what I see in Google, there are two commands to set up networking on Vector. One is netconfig and the other one is netset. Have you tried them?
|
In vectorlinux it is /sbin/vnetconf. There is also the good ol' netconfig command, but the functionality is exactly the same. It sets the hostname and configures the IP address. Since I have to use DHCP, because the IP address is dinamically assigned by the ADSL modem, I cannot setup a default gateway (and indeed I don't need it). What I need to know at this point is: which application/script is responsible to set-up the default gateway in VectorLinux/Slackware systems? So that I can override it...
|
On Slackware it's /etc/rc.d/rc.inet1
|
I tried to add the gateway 0.0.0.0 in /etc/rc.d/rc.inet1, but it still assigns 192.168.1.1. Anyway, I've just found out that on another system running Opensuse 11.1, the default gateway is assigned the same way at boot:
Code:
# route -n Code:
# route -n |
All times are GMT -5. The time now is 07:09 AM. |