<div dir="ltr"><div>Hi all,</div><div><br></div><div>I've a remote linux machine whose the routing table is :</div><div><br></div><div> [root@hostname]# route -n</div><div> Kernel IP routing table</div><div> Destination Gateway Genmask Flags Metric Ref Use Iface</div><div> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0</div><div> 10.10.10.16 0.0.0.0 255.255.255.240 U 0 0 0 eth0</div><div> 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0</div><div><br></div><div>The default gateway I should use is 10.10.10.17, and should be given by a linux dhcp server. So to be able to connect to the system I call someone on the site ask him to add the route manually (**route add default gw 10.10.10.17**).</div><div>When the route has been added I can now connect to the system. And once connected when I check the routing table again I have this :</div><div><br></div><div> [root@hostname]# route -n</div><div> Kernel IP routing table</div><div> Destination Gateway Genmask Flags Metric Ref Use Iface</div><div> 0.0.0.0 10.10.10.17 0.0.0.0 UG 0 0 0 eth0 (UG flag means it's up and is the gateway)</div><div> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0</div><div> 10.10.10.16 0.0.0.0 255.255.255.240 U 0 0 0 eth0</div><div> 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0</div><div><br></div><div>And when I restart the system, it boots without the right default gateway, and I'm obliged to call again to set the route manually. The dhclient lease file has the good **"option routers"** taken from the dhcp server.</div><div><br></div><div>Now I'm trying to remove the unspecified route from the routing table but each time I try I'm disconnected from the machine. </div><div><br></div><div>I've tried these different ways :</div><div><br></div><div> route del -net 0.0.0.0 netmask 0.0.0.0 metric 0</div><div><br></div><div> route del default gw 0.0.0.0</div><div><br></div><div> route del -net 0.0.0.0 gw 0.0.0.0</div><div><br></div><div>The three attempts disconected me from the server, and the guy at the other side tells me that each time I try to remove the route the default route becomes a star (**default ***). I'm obliged to let him add the route again mannualy, and when I'm connected, and I restart the network I lose the connection again.</div><div><br></div><div>So my questions are : </div><div>1) Why does this unspecified default route come back every time?</div><div>2) How can I (what's the way to) remove it without spoiling the routing table (losing the good default gateway).</div><div><br></div><div>Thanks.<br></div><div><br></div><div>Regards,</div><div>Eugène NG</div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><font color="#3366ff"><a href="mailto:ngonta_e@epitech.net" target="_blank">ngonta_e@epitech.net</a></font><div><font color="#3366ff"><a href="mailto:sympavali@gmail.com" target="_blank">sympavali@gmail.com</a></font></div><div>------------------------------------------------------------</div><div><i><b>Aux hommes il faut un chef, et au</b></i><i><b> chef il faut des hommes!<br>L'habit ne fait pas le moine, mais lorsqu'on te voit on te juge!<br></b></i></div></div>
</div>