black_
asked on
Routing Problem with dynamic IP
Hi guys,
i setted up my system with Ip-Masquerading and a ISDN dialup to my host.
the only problem is that when the route is added via:
"route add default ippp0"
in my script i have to do it after i made the connection to my server once again, because i only have a dynamic IP address from my ISP so i have to use 0.0.0.0 in my script.
But this way i can´t get the dial on demand on work without first establishing the connection through the Linux Box.
I really hope one of you guys can help me!
Cya,
Chris
i setted up my system with Ip-Masquerading and a ISDN dialup to my host.
the only problem is that when the route is added via:
"route add default ippp0"
in my script i have to do it after i made the connection to my server once again, because i only have a dynamic IP address from my ISP so i have to use 0.0.0.0 in my script.
But this way i can´t get the dial on demand on work without first establishing the connection through the Linux Box.
I really hope one of you guys can help me!
Cya,
Chris
ASKER
That is what i´ve already done, but is everytime deleted then after the box has connected!!
What should i do now??
What should i do now??
Do you have a default route already set - what does
route say.
Your message says that you set the default route in your
script. This should not be the case, maybe you could explain the
steps you go through when connecting.
route say.
Your message says that you set the default route in your
script. This should not be the case, maybe you could explain the
steps you go through when connecting.
You should use the "defaultroute" option at the commandline of ipppd. This tells ipppd to add the default route itself.
However you have to make sure that there is not already a
default route set !
You may also want to ensure that the network part of your local IP-address of your ehternet card is different fron the network address used by your dial-up server.
(i.e. if your server assings addresses to you from the range:
123.45.67.xxx (xxx is a number between 1 and 253) then you
must not use the first 3 bytes (123.45.67.) for your local
ethernet card. Otherwise routing might get confused.
However you have to make sure that there is not already a
default route set !
You may also want to ensure that the network part of your local IP-address of your ehternet card is different fron the network address used by your dial-up server.
(i.e. if your server assings addresses to you from the range:
123.45.67.xxx (xxx is a number between 1 and 253) then you
must not use the first 3 bytes (123.45.67.) for your local
ethernet card. Otherwise routing might get confused.
ASKER
I really know that the defaultroute is set by itself, but the problem is that it is deleted after i received my dynamic Ip. Thats what confuses me!
Doesn´t have anyone the sam problem as i, or some scripts that may work for me???
Doesn´t have anyone the sam problem as i, or some scripts that may work for me???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
/etc/ppp/options.
This will set the default route automatically once the connection is made. This is how I do my setup with dynamic IP addresses and PPP. (This is going through a Linux Masq router with that setup)