Got a new router, and need to change network setup
Kevin O'Gorman
kogorman at gmail.com
Sun Nov 14 17:01:25 UTC 2010
On Sat, Nov 13, 2010 at 11:37 PM, Steven Susbauer <steven at too1337.com>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
> > 64.166.164.54 0.0.0.0 255.255.255.255 UH 0 0 0
> eth0
> > 10.0.0.0 0.0.0.0 255.255.255.0 U 1 0 0
> eth0
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0
> eth0
> > 0.0.0.0 64.166.164.54 0.0.0.0 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 10.0.0.1 (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 64.166.164.54
> sudo ip route del 0.0.0.0
> sudo ip route add default via 10.0.0.1 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
WTF??
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
work.
--
Kevin O'Gorman, PhD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101114/77e71577/attachment.html>
More information about the ubuntu-users
mailing list