[SLE] assigning multiplie IPs to same interface
I'm running 6.3. How can I assign multiple IP numbers to the same interface? I looked a man ifconfig but nothing jumped out at me. IFCONFIG_0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 up" I'd like that machine to also respond as 192.168.0.2, for example. Thanks, Bill Moseley mailto:moseley@hank.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
IP aliasing is the thing you need - it has to be enabled in the kernel if it is, the setup eth0:0 as 192.168.0.2 On Thu, 01 Jun 2000, Bill Moseley wrote:
I'm running 6.3.
How can I assign multiple IP numbers to the same interface? I looked a man ifconfig but nothing jumped out at me.
IFCONFIG_0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 up"
I'd like that machine to also respond as 192.168.0.2, for example.
Thanks,
Bill Moseley mailto:moseley@hank.org
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- Chad Whitten cwhitten@intop.net http://whitten.dhs.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 08:33 AM 06/01/00 -0500, Chad Whitten wrote:
IP aliasing is the thing you need - it has to be enabled in the kernel if it is, the setup eth0:0 as 192.168.0.2
I'm using just the yast installed kernel from the distribution. I'm going to assume it's not in my kernel, but I also assume that I can use the ip_alias module. But it's not on my machine. Anyone know where to download it? Any tricks to building the module? BTW - I searched the SuSE htdig archives for ip_alias, and it says 4 results, but doesn't show them. I would expect to find something on this at the SuSE site. Bill Moseley mailto:moseley@hank.org -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Thu, 1 Jun 2000, Bill Moseley wrote:
At 08:33 AM 06/01/00 -0500, Chad Whitten wrote:
IP aliasing is the thing you need - it has to be enabled in the kernel if it is, the setup eth0:0 as 192.168.0.2
I'm using just the yast installed kernel from the distribution. I'm going to assume it's not in my kernel, but I also assume that I can use the ip_alias module. But it's not on my machine.
It should be if you have one regular kernels. I've never had to do more than ifconfig eth0:0 192.168.0.3 netmask 255.255.255.0 up. I believe you can go in to YaST and just add an eth0:0 interface to make it permanent (but I don't use YaST much so don't take my word for it). Greg -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Be sure you have IP aliasing compiled into your kernel. This is the relevant section of /etc/rc.config I use. The eth0 interface has three IP addresses. HTH, Jeffrey # # networking # # number of network cards: "_0" for one, "_0 _1 _2 _3" for four cards # NETCONFIG="_0 _1 _2" # # IP Adresses # IPADDR_0="192.168.169.1" IPADDR_1="192.168.169.3" IPADDR_2="192.168.169.4" IPADDR_3="" # # network device names (e.g. "eth0") # NETDEV_0="eth0" NETDEV_1="eth0:1" NETDEV_2="eth0:2" NETDEV_3="eth1" # # parameteres for ifconfig, if you put "bootp" into it, bootp will # be used to configure it # sample entry for ethernet: # IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask 255.255.255.224" # IFCONFIG_0="$IPADDR_0 broadcast 192.168.169.255 netmask 255.255.255.0 up" IFCONFIG_1="$IPADDR_1" IFCONFIG_2="$IPADDR_2" IFCONFIG_3="" Quoting Bill Moseley <moseley@hank.org>:
I'm running 6.3.
How can I assign multiple IP numbers to the same interface? I looked a man ifconfig but nothing jumped out at me.
IFCONFIG_0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0 up"
I'd like that machine to also respond as 192.168.0.2, for example.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (4)
-
cwhitten@intop.net
-
ethant@pacificnet.net
-
moseley@hank.org
-
muskrat@texas.net