Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Non-Linode RHEL question
PostPosted: Fri May 22, 2009 10:24 am 
Offline
Junior Member

Joined: Sat May 05, 2007 8:53 pm
Posts: 49
I'm trying to add a 2nd IP address to a network adapter on a physical server.

The machine is running a very old RHEL (v 3). It's at a colo facility, and I don't have easy access to it. I didn't set any of this up -- I'm trying to move stuff off of these machines, on to modern boxes.

The box has two NICs built in, and an add in card. The NIC that's being used is the one on the add in card -- no cables are plugged into the others. I want to add the second IP address to the add in card.

The card shows up like this in ifconfig:

Code:
dev15200  Link encap:Ethernet  HWaddr 00:10:18:16:4B:BE  
          inet addr:xx.xx.xx.xx  Bcast:xx.xx.xx.xx  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17342787 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14568400 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1706673493 (1627.6 Mb)  TX bytes:42203150 (40.2 Mb)
          Interrupt:10


Under /etc/sysconfig/network-scripts, I have a file called ifcfg-eth0 that looks like this:

Code:
# Broadcom Corporation|NetXtreme BCM5703X Gigabit Ethernet
DEVICE=dev15200
BOOTPROTO=none
BROADCAST=xx.xx.xx.xx
HWADDR=00:10:18:16:4B:BE
IPADDR=128.241.246.164
NETMASK=255.255.255.248
NETWORK=xx.xx.xx.xx
ONBOOT=YES
TYPE=Ethernet
GATEWAY=xx.xx.xx.xx


I know how to set up eth0:0 if eth0 already exists. But I'm not sure how to set it up in this situation, or how to set up a dev15200:0. I've tried a couple of ifcfg-eth0:0 config files -- one with the device name eth0:0, and one with the device dev15200:0.

Is there a way to do this?


Top
   
 Post subject:
PostPosted: Fri May 22, 2009 11:00 am 
Offline
Junior Member

Joined: Fri Mar 28, 2008 8:20 pm
Posts: 20
Website: http://pathennessy.org/
Location: Delaware
I've never seen a device named like that before. I also have a very ancient RHEL 3 server with a few aliases and a few nics. They use the normal eth0 names though.

I have a file named /etc/sysconfig/network-scripts/ifcfg-eth0-range0 and it just contains the following. Putting the device name in the file name is important for the RHEL scripts to read this. If you provide a range of ten IPs below, it'll do eth0:0 through eth0:9.

Code:
IPADDR_START=XXX.XXX.XXX.XXX
IPADDR_END=YYY.YYY.YYY.YYY
CLONENUM_START=0


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group