LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-16-2012, 07:19 AM   #1
Bl@ckJ@ck
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
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
 
Old 09-16-2012, 08:21 AM   #2
seeberg
LQ Newbie
 
Registered: Sep 2010
Posts: 14

Rep: Reputation: 3
Route add "IP ADDRESS " dev eth0
 
Old 09-16-2012, 09:37 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,891

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
Old 09-16-2012, 05:06 PM   #4
Bl@ckJ@ck
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Guys,
Thank you very much for your help.
very much appreciated

Cheers
 
Old 09-17-2012, 05:29 PM   #5
Bl@ckJ@ck
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-17-2012, 08:11 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,891

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Reply

Tags
eth0, network, route


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to get online with 169.254 address Mark_667 Linux - Wireless Networking 10 04-11-2011 07:04 AM
Ethernet crossover, avahi and 169.254.* wichiff Linux - Networking 4 07-17-2010 11:56 AM
nmbd broadcasting UDP to 169.254.0.2? mikesjays Linux - Server 2 06-30-2009 09:42 PM
Destination 169.254.0.0 ESOOJAY Linux - Networking 1 05-13-2007 05:23 PM
169.254.0.0 in Kernal IP routing table aikempshall Linux - Networking 13 03-10-2004 11:30 PM


All times are GMT -5. The time now is 10:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration