LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Same address on eth0 as eth1 (https://www.linuxquestions.org/questions/linux-networking-3/same-address-on-eth0-as-eth1-326018/)

matrixcubed 05-22-2005 03:23 PM

Same address on eth0 as eth1
 
Hello all,

I have my network set up as follows:

ppp0 - PPPoE virtual adapter; DCHP IP from ISP (a DSL provider)
eth0 - external network interface, has no IP address
eth1 - network gateway, IP 10.0.0.1

The contents of /etc/sysconfig/network-scripts/ifcfg-eth0:
Quote:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
The contents of /etc/sysconfig/network-scripts/ifcfg-eth1:
Quote:

DEVICE=eth1
BOOTPROTO=static
BROADCAST=10.0.0.255
IPADDR=10.0.0.1
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes
Recently a problem has occurred where both interfaces eth0 and eth1 have taken on the same IP address of 10.0.0.1. While I believe my firewall rules will prevent any damage (relay exploitation, for example), I fear that it may cause problems I am unaware of.

The first thing I did was to reboot the computer, but this has not solved the problem. I have also manually down/upped the interface with ifconfig. As well, config-network only configures the first interface, so that is of no help to me.

My system is a Redhat 9 commandline-only system, so GUI tools are out of the question. :-)

I am not sure what to do at this point, but if anyone can give me some insight it'd be greatly appreciated.

fr_laz 05-23-2005 08:56 AM

Hi,
since eth0 is used to set up a ppp connexion, it doesn't need an IP.
Thus try to do an 'ifconfig eth0 0.0.0.0'
That will deconfigure the IP of eth0 while keeping it up.
If this works, then copy ifcfg-eth1 to ifcfg-eth0 and change the IP so that it is 0.0.0.0.

matrixcubed 05-23-2005 12:25 PM

That did it. Thanks a lot! :)


All times are GMT -5. The time now is 02:17 AM.