[expert] Two different IPs with 1 Ethernet card
Hi! I have a PC with an Ethernet card in my LAN and I was wandering if there is a way I could add a second network with a different IP, mailserver, ftp server and so on Could anyone enlighten me on this? TIA Thanasis Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Two different IPs with 1 Ethernet card
Yeah, one of the ways that you can do this is to use linuxconf. ->Networking -> Server tasks tab -> IP Alias for virtual hosts -> eth0 -> fill in the additional IP numbers. Sevatio Thanasis Koutras wrote: > Hi! > > I have a PC with an Ethernet card in my LAN and I was wandering if there is > a way I could add a second network with a different IP, mailserver, ftp > server and so on Could anyone enlighten me on this? > > TIA > > Thanasis > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Two different IPs with 1 Ethernet card
Or you can do this way, as discussed before: Just like main config file, just add :X to the name: /etc/sysconfig/network-scripts/ifcfg-eth0:0 /etc/sysconfig/network-scripts/ifcfg-eth0:1 . . . /etc/sysconfig/network-scripts/ifcfg-eth0:X and for example ifcfg-eth0:0 DEVICE=eth0:0 BOOTPROTO=static IPADDR=192.168.1.2 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 ONBOOT=yes /etc/sysconfig/network-scripts/ifup-aliases is the script which do the actual job to bring them up... On Tue, 9 Apr 2002, Sevatio wrote: > Yeah, one of the ways that you can do this is to use linuxconf. > > ->Networking -> Server tasks tab -> IP Alias for virtual hosts -> eth0 > -> fill in the additional IP numbers. > > Sevatio > > Thanasis Koutras wrote: > > Hi! > > > > I have a PC with an Ethernet card in my LAN and I was wandering if there is > > a way I could add a second network with a different IP, mailserver, ftp > > server and so on Could anyone enlighten me on this? > > > > TIA > > > > Thanasis > > > > > > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > > > > -- --- Alan Wilter S. da Silva --- Laboratório de Física Biológica Instituto de Biofísica Carlos Chagas Filho Universidade do Brasil/UFRJ Rio de Janeiro, Brasil Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Two different IPs with 1 Ethernet card
--- Thanasis Koutras <[EMAIL PROTECTED]> wrote: > Hi! > > I have a PC with an Ethernet card in my LAN and I > was wandering if there is > a way I could add a second network with a different > IP, mailserver, ftp > server and so on Could anyone enlighten me on > this? > > TIA > > Thanasis The way I added a second network to our existing one was like so: ifconfig eth1:0 (new ip address) /sbin/route add -host (new ip address) dev eth1:0 I added those two lines to rc.local so it would bind on reboot and then I adjusted my iptables accordingly. HTH __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com