Re: Ethernet Adpater
On Sun, 19 Jan 2003 [10:33],
Kevin Smith (kevin@netsmith.ltd.uk) 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...?
Ifconfig is the proper tool.
ifconfig eth0:1 192.168.0.124
ifconfig eth0:2 192.168.0.125
ifconfig eth0:3 192.168.0.126
ifconfig eth0:4 192.168.0.127
Better if you do it the debian way, by hacking the
/etc/network/interfaces, and then use ifup.
/d
--
... david röhr | o_
.. unix systems consultant | o/ /\ Solaris, AIX, HP-UX
. qbranch system management | /|_, \\ and GNU/Linux Certified.
www.qbranch.se /
`
Reply to: