Operating System - Linux
1833041 Members
2467 Online
110049 Solutions
New Discussion

IP multiplexing in Linux 7.2

 
SOLVED
Go to solution
S.C. Fun
Advisor

IP multiplexing in Linux 7.2

Hey Guys, I'm a newbie in Linux. Any idea how to configure IP multiplexing in RH Linux 7.2? Thanks in advance.
1 REPLY 1
I_M
Honored Contributor
Solution

Re: IP multiplexing in Linux 7.2

Hi,

you can set multiple ip addresses to one pysical port. (max 255)

The first port is, as you know, eth0.
The 2nd one is eth0:0

So if you want to set 2nd ip to the card,
# ifconfig eth0:0 ip-address-0 netmask xxxxxx

the third one
# ifconfig eth0:1 ip-address-1 netmask xxxxxx

If you want to set the address into the config file, assuming you are using RH,
#cp /etc/sysconfic/ifcfg-eth0 /etc/sysconfig/ifcfg-eth0:1
then edit the file.

After you change the config file, # /etc/rc.d/init.d/network restart will restart your NIC.

good luck