LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Vlans not showing up in Gentoo. (https://www.linuxquestions.org/questions/linux-newbie-8/vlans-not-showing-up-in-gentoo-4175477709/)

srijivdimri 09-19-2013 04:41 AM

Vlans not showing up in Gentoo.
 
Hi Experts,

I am facing some issues with the vlan configuration in Gentoo.

I have emerged these packages:-
# emerge net-misc/vconfig

Here is how my /etc/conf.d/net looks like
slaves_bond0="enp66s0f0 enp66s0f1"
vlans_bond0="253"
config_bond0="null"
config_bond0_253="192.168.211.131 netmask 255.255.255.240"

Here is how my /etc/local.d/net.start looks like
/etc/init.d/net.bond0 start
vconfig add bond0 253
ifconfig bond0.253 10.154.137.68 netmask 255.255.255.224
route add -net 10.154.136.0 netmask 255.255.255.0 gw 10.154.137.65 dev bond0

Here is my /etc/conf.d/modules file looks like
modules="bonding"
module_bonding_args="miimon=100 mode=4"

802.1Q is enabled on the Kernel level.

Soft link is configured for the same
lrwxrwxrwx 1 root root 6 Sep 19 01:45 net.enp66s0f1 -> net.lo
lrwxrwxrwx 1 root root 13 Sep 18 05:33 net.bond0 -> net.enp66s0f0
-rwxr-xr-x 1 root root 17K Sep 18 05:05 net.lo
lrwxrwxrwx 1 root root 6 Sep 18 05:03 net.enp66s0f0 -> net.lo

I restart the bond0 interface but the vlan 253 does not comes up and bond0 has no ip assigned to it becase of null parametre passed to it in /etc/conf.d/net.

Please let me know if I am missing something here.


All times are GMT -5. The time now is 01:06 AM.