RE: where is the route table put

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

 



mingjwan@xxxxxxxxxxxxxxxxxx wrote:
> the content of my route table is wrong .
> so I have to modify them using the following command route add
> default gw myip route del default gw oldip
> but every time i reboot the computer or turn on the computer
> .The content of the route table returned to the old one.
> How can i change it permanently. Where is the file that
> contain the route .

1) Remove any GATEWAY=xx.xx.xx.xx parameters from your
/etc/sysconfig/network-scripts/ifcfg-eth0, ifcfg-eth1 files.

2) Add the GATEWAY=xx.xx.xx.xx to /etc/sysconfig/network file.

When you reboot, you should have a single default gateway pointing to xx.xx.
xx.xx


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux