LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2013, 12:22 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Is it kosher to have 2 global eth0 non-secondary IPs? Or should anything other than


Is it kosher to have 2 global eth0 non-secondary IPs?

Or should anything other than the main IP be secondary. Ex:
Code:
inet 11.11.11.75/24 brd 11.11.11.255 scope global eth0
    inet 11.11.11.201/25 scope global eth0
    inet 11.11.11.210/25 scope global secondary eth0
    inet 11.11.11.203/25 scope global secondary eth0
TIA
 
Old 09-18-2013, 05:16 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
You can have as many IP addresses configuried as you want. Just keep in mind that the primary one is used as your source address when sending packages out. When you need to send from different IP some binaries have an option for this and I guess most of the daemon also adhore to it. Just for example ping has an option to configure the outgoing IP and I believe even interfaces.

In case you want to have control over which IP is used for what check out the lartc guide it has some entries about configurering the routing table.
 
  


Reply



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
Can I Prevent an ethernet card from losing secondary IPs on Fedora 10 w/Shorewall? ftgnome Linux - Newbie 4 09-27-2010 02:33 PM
Production server with static IPs on eth0 and eth0:1 - need private LAN on eth1 stardotstar Linux - Networking 8 07-03-2010 12:27 AM
Stop users using any global Ips of proxy thinker Linux - Networking 1 12-17-2006 02:49 AM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
eth0:9 incorrect IPs ,and eth0 not IPs WannaLearnLinux Linux - Networking 10 10-26-2003 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration