Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-16-2006, 10:50 AM
|
#1
|
Member
Registered: Jan 2003
Posts: 48
Rep:
|
Server responds to 2 IP addresses
Red Hat 9 Enterprise. Old server at 192.168.25.11 being replaced. Put new server on network at 192.168.25.12. Copy data over and configure the new server. Unplug the old server, and change the new server's IP address to what the old server was (192.168.25.11). (That is so the 100 terminal emulation clients already set to connect to 192.168.25.11 will not have to be changed). Anyway, after changing the IP address to .11 using the ifconfig command, ifconfig still reported back .12 as the IP. I went and edited the ifcfg-eth0 network script and put .11 in there. Rebooted server, ran ifconfig, still reports the IP as .12. Next went to the GUI and ran network configuration, which showed eth0 as being set to .11 I checked every file where an IP address can be set (including /etc/hosts) and everything showed as .11. Just for fun, I tried pinging both IP's from another computer and they both replied! There is only one network card configured, it is set to .11, yet ifconfig thinks it's .12 and it responds to ping requests to both. Now, the server is working fine and the users are all connecting to it at .11, but why does ifconfig show .12? This is bothering me. Any ideas?
|
|
|
03-16-2006, 01:21 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
Please, give us the "ifconfig -a" output.
|
|
|
03-16-2006, 01:38 PM
|
#3
|
Member
Registered: Jan 2003
Posts: 48
Original Poster
Rep:
|
OK, here it is:
eth0 Link encap:Ethernet HWaddr 00:14:22:1D:F1:30
inet addr:192.168.25.12 Bcast:192.168.25.255 Mask:255.255.255.0
inet6 addr: fe80::214:22ff:fe1d:f130/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2249727 errors:0 dropped:0 overruns:0 frame:0
TX packets:2191224 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:146886799 (140.0 MiB) TX bytes:1188871022 (1.1 GiB)
Base address:0xecc0 Memory:fe6e0000-fe700000
eth1 Link encap:Ethernet HWaddr 00:14:22:1D:F1:31
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)
Base address:0xdcc0 Memory:fe4e0000-fe500000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:85051 errors:0 dropped:0 overruns:0 frame:0
TX packets:85051 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9931935 (9.4 MiB) TX bytes:9931935 (9.4 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:0
|
|
|
03-17-2006, 12:07 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
Sorry the delay,
That is strange, indeed.
Is the old server up and running somewhere ?
if you do "ifconfig etho down" the clients lost connection ?
Quote:
Originally Posted by albracco
Anyway, after changing the IP address to .11 using the ifconfig command, ifconfig still reported back .12 as the IP
|
Can you check this again with the following commands, please ?
Code:
# ifconfig eth0
# ifconfig eth0 inet 192.168.25.11 netmask 255.255.255.0 up
# ifconfig eth0
You can simulate a reboot, at least to what is network related by:
Code:
# service network stop
# service network start
thanks,
|
|
|
All times are GMT -5. The time now is 09:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|