Got a new router, and need to change network setup
Steven Susbauer
steven at too1337.com
Sun Nov 14 07:37:45 UTC 2010
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
More information about the ubuntu-users
mailing list