RE: Flushing the IP routing table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Odd looking netmask !!!! on first entry
Should it be 255.255.255.0 ?

To delete that entry 
route del -net 192.168.0.0 netmask 255.255.252.0 eth0

to replace with correct? one
route add -net 192.168.0.0 netmask 255.255.255.0 eth0

To add a default route then something like
 
route add default gw 192.168.0.254

But better still edit
/etc/sysconfig/network/network-scripts/ifcfg-eth0
to contain the correct info
Something like

DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.0.255
IPADDR=192.168.0.??		machine IP
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
GATEWAY=192.168.0.254		Maybe

Stop and start networking using
service network restart

All as root of course!

John

On Thu, 2006-01-12 at 06:25 -0800, Chris Norman wrote:
> Hi,
> It won't let me flush it, how do I delete individual entries?
> The table looks like this:
> 
> [root@bob ~]# route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use 
> Iface
> 192.168.0.0     *               255.255.252.0   U     0      0        0 eth0
> 169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
> 
> I want one to let me out of the network, that can be added. I did it last 
> time, but I've restarted since and it's deleted it, any ideas why?
> 
> Cheers,
> 
> Chris Norman
> <!-- chris.norman4@xxxxxxxxxxxx -->
> Selling cheap but functional shell accounts. 
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux