LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   editing route command for 169.254.0.0 to use eth0 (http://www.linuxquestions.org/questions/linux-newbie-8/editing-route-command-for-169-254-0-0-to-use-eth0-4175427495/)

Bl@ckJ@ck 09-16-2012 07:19 AM

editing route command for 169.254.0.0 to use eth0
 
Hi,
I need some help to edit my centos node to allow the IP address 169.254.0.0 to use eth0.

At the moment when I do a route command, 169.254.0.0 uses eth1 and I guess this is causing some network issues such as this server not being accessible to the Internet.

It was all working when eth0 was used instead of eth1.
Can someone please help me out?

Thank you in Advance

seeberg 09-16-2012 08:21 AM

Route add "IP ADDRESS " dev eth0

michaelk 09-16-2012 09:37 AM

Quote:

route add -net 169.254.0.0 netmask 255.255.0.0 dev eth1
and to make it a lower priority
Quote:

route add -net 169.254.0.0 netmask 255.255.0.0 dev eth1 metric 1000
route add default dev eth1 metric 1000

Bl@ckJ@ck 09-16-2012 05:06 PM

Hi Guys,
Thank you very much for your help.
very much appreciated :)

Cheers

Bl@ckJ@ck 09-17-2012 05:29 PM

Hi Guys,

Everytime I do a network restart, the default route changes and uses another NIC card.

For example, I would like to use eth0 as the default route for my network but everytime I activate another NIC card or do a service network restart, the default route changes and uses eth1. Is there a command to lock down routes to use certain NIC eth cards?

Many thanks

michaelk 09-17-2012 08:11 PM

Here is how to configure a static route.

http://www.linuxquestions.org/questi...-linux-565828/

Can you explain how your network is configured? In a nutshell 169.254.0.0/16 is a reserved network. Basically if no DHCP server exists on your private LAN an IP is automatically assigned in the 169.254.0.0 range when the computer boots.

http://en.wikipedia.org/wiki/Zero_co...ion_networking

It is also known as link-local or APIPA.


All times are GMT -5. The time now is 11:17 PM.