On Sat, Jan 18, 2003 at 05:33:06PM -0000, Kevin Smith wrote: > Hi All, > > Well, Debian Linux 3.0r1 (powerpc) installed and working like a dream, well > just about anyway. ;) > > I'm trying to work out the ifconfig tool and how to assign more than 1 IP > address to the ethernet card. I have an IP address assigned to eth0, > however, I don't know how to assign another IP address to it. > > This is (bizarrely enough) easy in Windows 2000 as I currently have about 8 > IPs on the ethernet card, but how do I do it with Linux? > > I thought I could do something like this: ifconfig eth1 up. But it reports: > No such device. > > Any ideas? Unless of course ifconfig is not infact the correct tool...? >
>From the IP-Alias mini-HOWTO: 2. Setup the loopback, eth0, and all the IP addresses beginning with the main IP address for the eth0 interface: /sbin/ifconfig lo 127.0.0.1 /sbin/ifconfig eth0 up /sbin/ifconfig eth0 172.16.3.1 /sbin/ifconfig eth0:0 172.16.3.10 /sbin/ifconfig eth0:1 172.16.3.100 172.16.3.1 is the main IP address, while .10 and .100 are the aliases. The magic is the eth0:x where x=0,1,2,...n for the different IP addresses. The main IP address does not need to be aliased. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]