Got a new router, and need to change network setup

Kevin O'Gorman kogorman at
Sun Nov 14 17:01:25 UTC 2010

On Sat, Nov 13, 2010 at 11:37 PM, Steven Susbauer <steven at>wrote:

> On 11/13/10 11:53 PM, Kevin O'Gorman wrote:
> > %sudo route -n
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags Metric Ref    Use
> > Iface
> > UH    0      0        0
> eth0
> >   U     1      0        0
> eth0
> >     U     1000   0        0
> eth0
> >         UG    0      0        0
> eth0
> >
> >
> > I want to ditch all route lines that have IPs starting with 64 or 169.
> > I want the default gateway to be (the router)
> You can use the ip command to modify the routing tables (and more!)
> pretty easily.
> The following should be enough to get rid of the old routes as well as
> adding the correct default (via your router). Getting rid of the link
> local (169.254...) address is not really that important, even a freshly
> installed machine will have it, it just allows machines to communicate
> if your DHCP server is down.
> sudo ip route del
> sudo ip route del
> sudo ip route add default via dev eth0 metric 0 proto static
> Thanks, this is a start -- I did no know about the "ip" command, and I was
puzzled by the 169.254 address.

However, only the first line worked as expected, and deleted the line it
should from my 'route -n' results.

The second one reports
RTNETLINK answers: No such process

The last one reports
RTNETLINK answers: file exists


I read up on the 'ip' command and after doing "ip route list" saw the format
was different from "route -n" and
guessed (correctly, as it turned out) that the right command was
sudo ip route del default
and then the third command worked okay.

I have to say that those error messages are a new low in relevance from a
user's point of view, whatever it
may mean to the implementors.

The good news: I can now ping, dig and generally navigate the internet.

Thanks again.  All I needed was knowing the right tool.  The GUI things need
Kevin O'Gorman, PhD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list