Got a new router, and need to change network setup
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
> > 18.104.22.168 0.0.0.0 255.255.255.255 UH 0 0 0
> > 10.0.0.0 0.0.0.0 255.255.255.0 U 1 0 0
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0
> > 0.0.0.0 22.214.171.124 0.0.0.0 UG 0 0 0
> > 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 126.96.36.199
> 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
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...
More information about the ubuntu-users