Mailinglist Archive: opensuse (1473 mails)
| < Previous | Next > |
Re: [SLE] 2+ IPs on one machine?
- From: bshelton@xxxxxxx (Brad Shelton)
- Date: Thu, 5 Aug 1999 15:36:32 -0400
- Message-id: <19990805153632.B22200@xxxxxxx>
On Tue, Aug 03, 1999 at 11:01:25PM +0100, Lee Smallbone wrote:
> Hello Everyone,
>
> Hope you all had a good weekend!
>
> I have a question regarding having 1 linux machine answering to more
> than 1 IP. I know this is possible, I just don't know how to go about
> it. :)
>
> I want the machine which is currently 192.168.1.4 to also respond to
> 192.168.1.5, 6, 7 and 8. Can anyone tell me how to go about making
> this happen?
Can't believe nobody answered this already.
Here goes....
#
# networking
#
# number of network cards: "_0" for one, "_0 _1 _2 _3" for four cards
#
NETCONFIG="_0 _1 _2 _3 _4"
#
# IP Adresses
#
IPADDR_0="192.168.1.4"
IPADDR_1="192.168.1.5"
IPADDR_2="192.168.1.6"
IPADDR_3="192.168.1.7"
IPADDR_4="192.168.1.8"
#
# network device names (e.g. "eth0")
#
NETDEV_0="eth0"
NETDEV_1="eth0:0"
NETDEV_2="eth0:1"
NETDEV_3="eth0:2"
NETDEV_4="eth0:3"
#
# parameteres for ifconfig, if you put "bootp" into it, bootp will
# be used to configure it
# sample entry for ethernet:
# IFCONFIG_0="x.x.x.x broadcast x.x.x.255 netmask 255.255.255.0"
#
IFCONFIG_0="192.168.1.4 broadcast 192.168.1.255 netmask 255.255.255.0 up"
IFCONFIG_1="192.168.1.5 broadcast 192.168.1.255 netmask 255.255.255.0 up"
IFCONFIG_2="192.168.1.6 broadcast 192.168.1.255 netmask 255.255.255.0 up"
IFCONFIG_3="192.168.1.7 broadcast 192.168.1.255 netmask 255.255.255.0 up"
IFCONFIG_4="192.168.1.8 broadcast 192.168.1.255 netmask 255.255.255.0 up"
#
# setup dummy network device for IPADDR_0? this is useful for non permanent
# network connections (e.g. SLIP, PPP). Some software needs a connection
# to FQHOSTNAME (e.g. plp). (yes, no)
SETUPDUMMYDEV=no
--
Brad Shelton On Line Exchange http://online-isp.com
| < Previous | Next > |