[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 ip`s on one interface



On Mon, Dec 10, 2001 at 05:47:48PM +0100, Marcin Sochacki wrote:
> On Mon, Dec 10, 2001 at 02:11:54PM -0200, Consultoria de Informatica Cathedral wrote:
> > How do i put 2 ip`s on a singlenet board????
> 
> ARGHHH, this is debian-isp list, not debian-newbie.
> I think people subscribed here are expected to know such things by default :)
> 

 This is debian-isp, puttin 2 ip's on a single interface is something
 that a small ISP might run into somewhere along the line. If I was
 this admin, and had never done it before, then I would ask here as
 well. 

 YOUR post is the only off-topic post in this thread.

 In response to the original post:

 You can you "ip aliases" to assign multiple IPs to the same network
 interface. For example:

# ifconfig eth0 192.168.1.5
# ifconfig eth0:1 192.168.1.6

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:20:78:16:D5:D6  
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20875 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:3109 txqueuelen:100 
          RX bytes:24011076 (22.8 MiB)  TX bytes:1056273 (1.0 MiB)
          Interrupt:5 Base address:0x9800 

eth0:1    Link encap:Ethernet  HWaddr 00:20:78:16:D5:D6  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5 Base address:0x9800 

-- 
  Nick Jennings



Reply to: