View previous topic :: View next topic |
Author |
Message |
Fe4unR n00b
Joined: 29 Nov 2024 Posts: 9
|
Posted: Sun Dec 15, 2024 1:24 am Post subject: second nic not started |
|
|
hi,
i have 2 nics and the second one doesn't start during boot. the first one (env3) comes up fine. i'm using openrc and netifrc and my /etc/conf.d/net looks like this:
Code: |
config_env3="172.16.76.22 netmask 255.255.128.0 brd 172.16.76.255"
config_env4="192.168.1.22 netmask 255.255.255.0 brd 192.168.1.255"
routes_env4="default via 192.168.1.1"
dns_servers_env3="172.16.76.8"
|
both have the symlink in /etc/init.d:
Code: |
ln -s net.lo net.env3
ln -s net.lo net.env4
|
if i start it manually after logging in via:
Code: | rc-service net.env4 start |
it starts and works fine. so what did i miss? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1951
|
Posted: Sun Dec 15, 2024 1:37 am Post subject: |
|
|
Likely missed: Code: | rc-update add net.env3 default
rc-update add net.env4 default |
That env3 config seems a bit broken as a /17 bitmask for 172.16.76.22 should be 172.16.127.255 for the broadcast.
A mistake of a /25 bitmask would have a broadcast of 172.16.76.127.
Something feels wrong with either way.
I suggest using CIDR setups to have consistency and avoid errors. |
|
Back to top |
|
|
Fe4unR n00b
Joined: 29 Nov 2024 Posts: 9
|
Posted: Sun Dec 15, 2024 2:48 am Post subject: |
|
|
grknight wrote: | Code: | rc-update add net.env3 default
rc-update add net.env4 default |
|
that did the trick, thanks! makes me wonder why env3 worked anyway. |
|
Back to top |
|
|
|