public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to configure eth1:1 ?
@ 2011-10-17 21:25 Grant Edwards
  2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
  2011-10-17 21:42 ` [gentoo-user] " Florian Philipp
  0 siblings, 2 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-17 21:25 UTC (permalink / raw
  To: gentoo-user

I'm trying to configure a second IP address for eth1 using the syntax
I found at

  http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1

But, it doesn't work.

Here's my /etc/init.d/net file:

  config_eth0="192.168.8.4/16"
  routes_eth0="default via 192.168.0.254"
  config_eth1=10.0.0.1/8"
  192.168.250.1/24"

But, starting eth1 says:

# /etc/init.d/net.eth1 start
 * Bringing up interface eth1
 *   Starting netplug on eth1 ...                                 [ ok ]
 *     Backgrounding ...
 * ERROR: net.eth1 failed to start
 
Only eth1 is configured.  eth1:1 isn't configured.




If I configure the interfaces by hand, it works fine:

alpha init.d # ifconfig eth1 10.0.0.1/8
alpha init.d # ifconfig eth1:1 192.168.250.1/24
alpha init.d # ifconfig

[...]

eth1      Link encap:Ethernet  HWaddr 00:16:17:84:a7:b3  
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128173 errors:0 dropped:120 overruns:0 frame:0
          TX packets:57741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10965596 (10.4 MiB)  TX bytes:39773535 (37.9 MiB)
          Interrupt:20 Base address:0xc000 

eth1:1    Link encap:Ethernet  HWaddr 00:16:17:84:a7:b3  
          inet addr:192.168.250.1  Bcast:192.168.250.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:20 Base address:0xc000 

[...]          


How do I configure a second IP address for an interface?

-- 
Grant Edwards               grant.b.edwards        Yow! I have the power to
                                  at               HALT PRODUCTION on all
                              gmail.com            TEENAGE SEX COMEDIES!!




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-10-20 14:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 21:25 [gentoo-user] How to configure eth1:1 ? Grant Edwards
2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
2011-10-17 22:04   ` Grant Edwards
2011-10-17 21:42 ` [gentoo-user] " Florian Philipp
2011-10-17 21:47   ` Florian Philipp
2011-10-17 22:19     ` [gentoo-user] " Grant Edwards
2011-10-18 15:09       ` YoYo Siska
2011-10-18 16:18         ` Grant Edwards
2011-10-19 15:19           ` james
2011-10-19 15:45           ` Grant Edwards
2011-10-18 16:23         ` Grant Edwards
2011-10-20  2:56       ` Walter Dnes
2011-10-20 14:12         ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox