LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-30-2009, 11:32 AM   #1
ECRocker
Member
 
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Rep: Reputation: 17
Trying to set an alt. ip address - eth0:1 just replaces eth0 instead


Last night I made changes to a server's /etc/sysconfig/network-scripts/ folder and made a eth0:1 file based on the eth0 file. Restarted the network service and after an ifconfig both ip addresses/devices appear.

Today I'm doing the same thing and I'm getting a different result. When I restart the network service or do an #ifup eth0:1, the eth0:1 configuration settings just overtake the eth0 settings.

Code:
[root@server network-scripts]# cat ifcfg-eth0:1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
IPADDR=10.0.1.71
NETMASK=255.255.0.0
GATEWAY=10.0.0.1
HWADDR=00:0C:29:E4:F2:0E
ONBOOT=yes
[root@server network-scripts]# cat ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
IPADDR=2xx.255.155.72
NETMASK=255.255.255.0
GATEWAY=2xx.255.155.1
HWADDR=00:0C:29:E4:F2:0E
ONBOOT=yes
Code:
service network restart
ifconfig
eth0 and lo display but eth0 displays the eth0:1 configuration.
Code:
ifup eth0:1
or
ifup eth0
does not affect anything.

Has anyone experienced this or know what I could be doing wrong?
Thanks.
 
Old 10-30-2009, 01:07 PM   #2
ECRocker
Member
 
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Original Poster
Rep: Reputation: 17
...forgot to change the device name in ifcfg-eth0:1 ... >.<
 
  


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
eth0: Device eth0 has different MAC address than expected,ignoring. lin1010 Linux - Networking 5 11-24-2010 08:30 AM
[SOLVED] Slackware64-current: eth1 replaces eth0, but gets no IP address on new mainboard gargamel Slackware 13 07-22-2009 04:40 PM
IP Address Not Being Set Correctly At Startup ie According to sysconfig-eth0 jogjayr Linux - Networking 7 08-30-2007 03:58 AM
How do I set the ip address for eth0, eth1 and the default gateway? abefroman Suse/Novell 5 05-19-2005 05:15 AM
Eth0 set up for Static, obtaining DHCP address?! IndustrialGeek Linux - Networking 2 01-03-2005 01:39 AM


All times are GMT -5. The time now is 11:43 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration