LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 02-05-2012, 06:14 PM   #1
pinoyskull
Member
 
Registered: Jan 2005
Location: server farm
Distribution: CentOS 5.7
Posts: 59

Rep: Reputation: 15
Duplicate IP problem on CentOS 5.7


Hi,

I have a VM running on CentOS 5.7 and weird thing is eth0 and eth1 has same IP every time i do a server restart, even though on the config (ifcfg-eth0 and ifcfg-eth1) it's not.

Where the hell did it get the IP?

Quote:
eth0 Link encap:Ethernet HWaddr E8:9A:8F:91:C4:0F
inet addr:10.100.1.1 Bcast:10.100.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:93 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11173 (10.9 KiB) TX bytes:6641 (6.4 KiB)
Interrupt:90 Memory:e8000000-e8012800
eth1 Link encap:Ethernet HWaddr E8:9A:8F:91:C4:10
inet addr:10.100.1.1 Bcast:10.100.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:140507 (137.2 KiB)
Interrupt:98 Memory:ea000000-ea012800

Quote:
[root@xxx ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.100.255.255
HWADDR=E8:9A:8F:91:C4:0F
IPADDR=10.100.1.1
NETMASK=255.255.0.0
NETWORK=10.100.0.0
ONBOOT=yes
[root@xxx ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=static
HWADDR=E8:9A:8F:91:C4:10
IPADDR=172.16.1.1
NETMASK=255.255.0.0
ONBOOT=yes
[root@pratesis-1-1-mcc1 ~]#
but if you do a network restart (/etc/init.d/network restart) it will fix the problem
 
Old 02-05-2012, 09:41 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,159

Rep: Reputation: 202Reputation: 202Reputation: 202
I would take the following actions:

First, add NETWORK=172.16.0.0 and BROADCAST=172.16.255.255 lines for eth1.

Next, clear your DHCP lease files, cause it can't hurt.

Code:
rm -r /var/lib/dhcp/*.lease
Or more drastically, remove the dhclient all-together.

Now, reboot and see what comes of it.
 
Old 02-06-2012, 03:39 AM   #3
pinoyskull
Member
 
Registered: Jan 2005
Location: server farm
Distribution: CentOS 5.7
Posts: 59

Original Poster
Rep: Reputation: 15
whoa! why did't i saw that, btw the 2 lines fixes the problem, no need for the removal of the leases (im not using it anyway).

Thanks dude.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate duplicate log entry problem dman777 Linux - Software 3 01-01-2011 03:01 PM
Problem with network and RAID on Centos 5.2 and Centos 5.4 thesirwolf Linux - Hardware 1 04-02-2010 11:47 AM
Problem with wine - CLOSED/DUPLICATE PROBLEM jbs1136 Slackware 3 03-16-2010 09:40 PM
does tar or bzip2 squash duplicate or near-duplicate files? garydale Linux - Software 6 11-19-2009 04:43 PM
Problem installing JAVAUNIX. needed for Duplicate File Finder bglnelissen Linux - Software 1 12-22-2004 04:53 PM


All times are GMT -5. The time now is 08:36 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
Open Source Consulting | Domain Registration