LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 02-12-2002, 11:06 AM   #1
burchy
LQ Newbie
 
Registered: Feb 2002
Posts: 1

Rep: Reputation: 0
Angry Red Hat 7.2 configuration


Please advise

I am a new user to redhat 7.2

Does anyone know how to add a second ip number to a Network interface card or know of a HOW TO paper. Am I right in thinking it has something to do with aliases.

Any suggestions.

Thanks

Burchy
:smash:
 
Old 02-12-2002, 08:40 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
i don't think a second ip to one device is possible.. if you had two ethernet cards its possible.
 
Old 02-21-2002, 09:13 AM   #3
Ionut
LQ Newbie
 
Registered: Feb 2002
Location: Bucharest
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
What you wanna do it's quite easy. Just follow these steps:

- create a file named ifcfg-eth0:1 in your /etc/sysconfig/network-scripts directory;
- write this in that file:

DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
# here you should make some adjustments
IPADDR=192.168.1.1
# here too
NETMASK=255.255.255.224
# and here
GATEWAY=192.168.1.1

- restart your network service

Ok, you're up and runnin'...

Good luck.
 
Old 02-22-2002, 11:29 AM   #4
jimval7
Member
 
Registered: Jan 2002
Location: Dallas, TX
Distribution: RedHat 7.0 - Kernel 2.4.17
Posts: 95

Rep: Reputation: 16
Thumbs up YUP!!

Ionut, You beat me to it. I've put 3 IP's on one single interface. Pretty kewl! If you think that is impressive, I know someone that has configured 1 interface to do dhcp (ppoe), gave it an internal IP address, AND HAD ALL His PC's on his LAN to go out that interface to the ethernet. A lot of collisions but hey it works.
 
Old 02-26-2002, 01:16 AM   #5
Ionut
LQ Newbie
 
Registered: Feb 2002
Location: Bucharest
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
Smile

This is not impressive, but common. I am using this "alias" tehnique for virtual hosting (www, mail and ftp). Look what an ipconfig shows at my console:

============================
[root@starship root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.18 Bcast:212.93.150.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1021513 errors:0 dropped:0 overruns:0 frame:0
TX packets:939307 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:269368691 (256.8 Mb) TX bytes:486590220 (464.0 Mb)
Interrupt:12 Base address:0x6800

eth0:1 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.4 Bcast:212.93.150.31 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0x6800

eth0:2 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.65 Bcast:212.93.150.95 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0x6800

eth0:3 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.5 Bcast:212.93.150.31 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0x6800

eth0:4 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.2 Bcast:212.93.150.31 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0x6800

eth0:5 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.9 Bcast:212.93.150.31 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0x6800

eth0:6 Link encap:Ethernet HWaddr 00:02:44:07:EB:AF
inet addr:212.93.150.11 Bcast:212.93.150.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0x6800
=============================
 
  


Reply



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
red hat network configuration ronss Linux - Networking 2 10-01-2003 06:50 AM
Keyboard Configuration Red Hat 9 GhouL Linux - Newbie 3 09-08-2003 02:22 PM
Red Hat 9.0 Firewall Configuration DrLazardo Linux - Networking 5 05-24-2003 01:21 AM
Installing and configuration of Red Hat 8.0 RedHatNewbie03 Linux - General 2 01-27-2003 04:14 PM
Red Hat 7.2: Netowrk Configuration AndySimpson Linux - Networking 2 08-29-2002 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:53 AM.

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
Open Source Consulting | Domain Registration