Hi all,
How do you assign two ip addresses to a network card under redhat 6.1?
I would prefer the way not using X linuxconfig please as the machine does
not have X on it.
Thanks
Thanks
ifconfig eth0Quote:>Hi all,
>How do you assign two ip addresses to a network card under redhat 6.1?
>I would prefer the way not using X linuxconfig please as the machine does
>not have X on it.
tho what is do is create /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=none
BROADCAST=192.168.0.255
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
then restart networking
--
TARogue (t o m (at) t a r o g u e . n e t)
plug #1 - http://www.tarogue.net/
plug #2 - http://www.tarogue.net/goth.html
plug #3 - http://www.tarogue.net/n.g.resource.html
Check 'em all out!
linuxconf also works in textmodeQuote:>I would prefer the way not using X linuxconfig please as the machine does
>not have X on it.
Change:
if [ ! -f /etc/sysconfig/network-scripts/$device:$current ]; then
To:
if [ ! -f /etc/sysconfig/network-scripts/ifcfg-$device:$current ]; then
Maybe I did something wrong, maybe im stupid :)) but maybe it may-be of help
:)
Martin Schipper
The Netherland
-g
> ifconfig eth0
> ifconfig eth0:0
> tho what is do is create /etc/sysconfig/network-scripts/ifcfg-eth0:0
> DEVICE=eth0:0
> BOOTPROTO=none
> BROADCAST=192.168.0.255
> IPADDR=192.168.0.1
> NETMASK=255.255.255.0
> NETWORK=192.168.0.0
> ONBOOT=yes
> then restart networking
> --
> TARogue (t o m (at) t a r o g u e . n e t)
> plug #1 - http://www.tarogue.net/
> plug #2 - http://www.tarogue.net/goth.html
> plug #3 - http://www.tarogue.net/n.g.resource.html
> Check 'em all out!
> Hi all,
> How do you assign two ip addresses to a network card under redhat 6.1?
> I would prefer the way not using X linuxconfig please as the machine does
> not have X on it.
> Thanks
-G
> > Hi all,
> > How do you assign two ip addresses to a network card under redhat 6.1?
> > I would prefer the way not using X linuxconfig please as the machine
does
> > not have X on it.
> > Thanks
> --
> Jean-Philippe Robichaud
> (514) 818-7750
> (ESN) 888-7750
> St-Laurent, Quebec, Canada
>-G
>> do netconf, there is an option to specify alias IP for a card...
>> > Hi all,
>> > How do you assign two ip addresses to a network card under redhat 6.1?
>> > I would prefer the way not using X linuxconfig please as the machine
>does
>> > not have X on it.
>> > Thanks
>> --
>> Jean-Philippe Robichaud
>> (514) 818-7750
>> (ESN) 888-7750
>> St-Laurent, Quebec, Canada
You can do that, but it leaves a lot of security holes / broadcastQuote:>What's the reason to have 2 ipaddress in one card. I thought you
>needed to have 2 network cards to do IP mascerading, or firewalling.
>That's what I would like to do, so if you can just put 2 address in
>one network card and be able to do that, please let me know. Thanks
Don't do that, The idea is to isolate and filter one network from the otherQuote:> >What's the reason to have 2 ipaddress in one card. I thought you
> >needed to have 2 network cards to do IP mascerading, or firewalling.
> >That's what I would like to do, so if you can just put 2 address in
> >one network card and be able to do that, please let me know. Thanks
> You can do that, but it leaves a lot of security holes / broadcast
> problems / etc / etc /etc
1. Assigning a second IP address to am Ethernet card???
I am setting up a Satellite link which joins into a class 'c' subnet. The
situation is that I have two subnets on the same physical network. I need a
FreeBSD server to serve requests on both subnets.
Does anyone have any experience or advice in how to do this properly?
I have tried a variety of methods with mixed success.
Any help is very much welcomed.
Regards,
Russ Eden.
2. Detecting terminal idle time
3. Can you assign 2 IP addresses to 1 network card
4. Crash Course in Programming w/ Shared Memory
5. Two Network Cards - One IP Address?
7. Two IP addresses and one network card
8. Running program under root ID
9. How Do I Assign two IP Addresses to One NIC
10. Two IP addresses assigned to same interface.
11. how can i config two IP address on one network card?
12. problem assigning ip address to second nic
13. How can you assign two ip address to one interface