View previous topic :: View next topic |
Author |
Message |
nullguid n00b
Joined: 15 Jan 2006 Posts: 8 Location: Tyumen, Russia
|
Posted: Thu Jun 01, 2006 8:03 am Post subject: Aliases on VLAN interfaces |
|
|
Hello, maybe I'm doing something wrong, but:
I need three aliases on eth0.505 vlan interfaces, I did this entry into /etc/conf.d/net:
Code: |
config_eth0_505=(
"217.116.53.13/24"
"217.116.53.14/32"
"217.116.53.1/32"
)
|
But upon startup I just get "217.116.53.13/24" and one alias: "217.116.53.1/32"
What's wrong? I cannot mess with net.eth0 code right now - feeling depressed when just looking at it. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
nullguid n00b
Joined: 15 Jan 2006 Posts: 8 Location: Tyumen, Russia
|
Posted: Thu Jun 01, 2006 9:06 am Post subject: |
|
|
Hey, I'm not so stupid
That's that I need (and get with Code: | ifconfig eth0.505 add 217.116.53.14 | ):
Code: |
eth0.505 Link encap:Ethernet HWaddr 00:0E:0C:07:D9:7C
inet addr:217.116.53.13 Bcast:217.116.53.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45780 errors:0 dropped:0 overruns:0 frame:0
TX packets:37197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13186629 (12.5 Mb) TX bytes:18747675 (17.8 Mb)
eth0.505: Link encap:Ethernet HWaddr 00:0E:0C:07:D9:7C
inet addr:217.116.53.14 Bcast:217.116.53.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45780 errors:0 dropped:0 overruns:0 frame:0
TX packets:37197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13186629 (12.5 Mb) TX bytes:18747675 (17.8 Mb)
eth0.505: Link encap:Ethernet HWaddr 00:0E:0C:07:D9:7C
inet addr:217.116.53.1 Bcast:217.116.53.255 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45780 errors:0 dropped:0 overruns:0 frame:0
TX packets:37197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13186629 (12.5 Mb) TX bytes:18747675 (17.8 Mb)
|
Upon startup, the second entry is missing. |
|
Back to top |
|
|
nullguid n00b
Joined: 15 Jan 2006 Posts: 8 Location: Tyumen, Russia
|
Posted: Thu Jun 01, 2006 9:09 am Post subject: |
|
|
I need three addresses on interface, what am I doing wrong with /etc/conf.d/net ? (or what is gentoo doing wrong) |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
nullguid n00b
Joined: 15 Jan 2006 Posts: 8 Location: Tyumen, Russia
|
Posted: Thu Jun 01, 2006 10:01 am Post subject: |
|
|
Ah, thanks, now I set that I either don't understand ifconfig or it doesn't work properly. |
|
Back to top |
|
|
nullguid n00b
Joined: 15 Jan 2006 Posts: 8 Location: Tyumen, Russia
|
Posted: Thu Jun 01, 2006 10:03 am Post subject: |
|
|
Just found that ifconfig is meant to obsolete. OMG |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|