Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-08-2004, 06:48 AM   #1
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 54

Rep: Reputation: 15
Question Subnet change - 2.4.19rc2

I am moving a Red Hat 7.3 server from IP xxx.95.119.48 to xxx.95.149.35. the /etc/sysconfig/network-scripts/ifcfg-eth0 shows


I ran ifconfig eth0 xxx.95.149.35 broadcast xxx.95.149.255 netmask

After that I did /etc/init.d/network restart and eth0 FAILS.

I am not sure what is wrong. I can ping myself after the change but cannot ping the GATEWAY or anything else. There are no other systems on this xxx.95.149 subnet but I was able to ping the gateway xxx.95.149.254 from my Windows desktop which is on the xxx.95.100 subnet.

Help please?
Old 10-08-2004, 07:33 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You are mixing boot scripts, dhcp & ifconfig together.... They all have different information...

If eth0 boots as dhcp, there will be a dhcp server somewhere to talk to, (otherwise it will use it's last good ip allocation.) Best to change the dhcp sever settings to issue the new ip number..

OR, change ifcfg-eth0 to:

then restart the network.
Usually, ifup eth0 will be enough.
ifconfig doesn't save any settings anywhere which is why the net restart wiped the changes you made.
Old 10-08-2004, 10:50 AM   #3
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 54

Original Poster
Rep: Reputation: 15
Thank you for your assistance. I actually want to make this static so I have done exactly as you stated. When I restart the network I can only ping myself. We plugged a windows laptop into the same hub and was able to ping the xxx.95.149.35 ( the box I'm configuring) and the DNS which is xxx.95.149.1.

I found that the /etc/sysconfig/network-scripts.ifcfg-eth0 file was originally set to DHCP. I saved it and ran "netconfig" with eth0 down. I set the ip, netmask and broadcast. Then restarted the network with the above results.

There is a file /etc/dhcpc/ as I mentioned in my original post. I made changes in there but I was told there is no dhcp on this subnet

Bottom line is I want to set this up for "static". Knowing that there was some dhcp piece before how do I go about it?
Old 10-08-2004, 04:08 PM   #4
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
u can try editing the /etc/resolv.conf file and
adding the static ip addresses there
nameserver (which will be the gateway server address which I presume is ur winxp box) but i am not to sure about ur network, can u be a bit more specific....are u trying to connect a standalone linux to a standalone windoze? If so then u need to look at your ip addresses and subnet...can u try and give a bit more info :-)


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
subnet jpostma Linux - Hardware 1 10-16-2005 02:11 PM
another subnet. bruse Linux - Networking 1 07-19-2005 12:35 PM
Move a 2.4.19rc2 server to a new subnet cbriscoejr Red Hat 2 10-08-2004 10:50 AM
a /27 within a /24 subnet arnix Linux - Networking 1 07-16-2003 09:16 PM
Can IP from different subnet be configured on another subnet russell Linux - Networking 1 08-23-2002 01:47 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration