LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2013, 04:09 PM   #1
techfour
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Rep: Reputation: Disabled
Network interface binding wrong ip address


I'm running Centos 6.4 and I have configured the following interfaces with different ip addresses. However, for some reason the eth3 is always binding the ip address of eth0 when doing a network restart or an ifup. How can I make eth3 use the correct ip address?


eth0 Link encap:Ethernet HWaddr D4:AE:52:A4:80:F3
inet addr:192.168.40.2 Bcast:192.168.40.255 Mask:255.255.255.0
inet6 addr: fe80::d6ae:52ff:fea4:80f3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26320 errors:0 dropped:0 overruns:0 frame:0
TX packets:194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1630806 (1.5 MiB) TX bytes:18355 (17.9 KiB)
Memory:da500000-da600000

DEVICE="eth0"
BOOTPROTO="none"
IPADDR=192.168.40.2
NETMASK=255.255.255.0
GATEWAY=192.168.40.1
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"


eth1 Link encap:Ethernet HWaddr D4:AE:52:A4:80:F4
inet addr:10.0.10.22 Bcast:10.0.10.47 Mask:255.255.255.240
inet6 addr: fe80::d6ae:52ff:fea4:80f4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10447860 errors:0 dropped:0 overruns:0 frame:0
TX packets:14763461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3240198419 (3.0 GiB) TX bytes:1715786142 (1.5 GiB)
Memory:da600000-da700000

DEVICE="eth1"
BOOTPROTO="none"
IPADDR=10.0.10.22
NETMASK=255.255.255.240
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"


eth2 Link encap:Ethernet HWaddr 00:0A:F7:0F:9C:BC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:48 Memory:d7800000-d7ffffff

DEVICE="eth2"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT="no"
TYPE="Fiber"


eth3 Link encap:Ethernet HWaddr 00:0A:F7:0F:9C:BE
inet addr:192.168.40.2 Bcast:192.168.40.255 Mask:255.255.255.0
inet6 addr: fe80::20a:f7ff:fe0f:9cbe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:49743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192 (192.0 b) TX bytes:2289913 (2.1 MiB)
Interrupt:52 Memory:d8800000-d8ffffff

DEVICE="eth3"
BOOTPROTO="none"
HWADDR=00:0A:F7:0F:9C:BE
IPADDR=10.0.10.36
NETMASK=255.255.255.224
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Fiber"
 
Old 11-04-2013, 08:35 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Code:
BOOTPROTO="none"
that is your problem, you have not told the system what they are to use. as you are setting them all to static set it to static.

Code:
BOOTPROTO=STATIC
try that it should help.
 
Old 11-05-2013, 03:16 PM   #3
techfour
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
After entering
Code:
BOOTPROTO=STATIC
on all the interface config files the same issue occurs. Interface eth3 is still binding to IP address of eth0. If I leave one of the the interfaces with bootproto=none the interface eth3 will use the IP of that interface using bootproto=none.
 
Old 11-06-2013, 11:54 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
this link is a bit old, but the general data is correct.

http://www.cyberciti.biz/faq/rhel-ce...configuration/

this is more up to date and directly from RH. note the change in BOOTPROTO=, looks like they have depreciated STATIC

https://access.redhat.com/site/docum...nterfaces.html
 
Old 11-06-2013, 02:09 PM   #5
techfour
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
The issue was first solved by recreating the eth 1 and eth3 using the gui utility under preferences. Then we came to the conclusion that was really causing the problem is having the NetworkManager running. We had to turn it off and then chkconfig off.
 
  


Reply


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
Port/Address forwarding with iptables with one network interface. Nextrastus Linux - Networking 5 09-18-2013 10:55 AM
How to change eth1 address from /etc/network/interface? venom4u31 Linux - Newbie 7 11-28-2011 10:02 AM
binding of IP address to its mac address in squid proxy ramamalempati Linux - Server 5 06-05-2009 03:51 AM
Network Interface IRQ address fullgore Slackware 3 04-04-2008 08:27 AM
Getting IP address for a network interface through the filesystem, not ifconfig nachosmith Linux - Networking 2 02-26-2007 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:56 AM.

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