I have a few questions about the best way to proceed with Mageia.
I figured out that I needed to load a kernel driver that was not loaded by default, the 8021q driver. I did so. Now I want that driver to load on every boot.
I have placed it in /etc/modules, which will cause it to be loaded, but I guess I am not certain that /etc/modules is not deprecated. Is there a better place to put this?
After loading the kernel module, I manually created the file ifcfg-eth0:6 in /etc/sysconfig/network-scripts. I don't know if I needed to do that or not, but I did it.
The contents of the file are as follows:
- Code: Select all
DEVICE=eth0:6
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ONBOOT=yes
METRIC=3
MII_NOT_SUPPORTED=no
USERCTL=no
DNS1=208.67.222.222
DNS2=192.168.0.1
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=no
NM_CONTROLLED=no
After I created this file, I issued the command:
- Code: Select all
ip link add link eth0:6 type vlan id 6
and, on my next ifconfig, I found that I now had an interface vlan0.
Now, my vlan0 had no ip address, so I put an ip address on it to match vlan6, and it works. Well, I had to make changes to shorewall, but once that was done, it works.
The system created a file ifcfg-vlan0 in /etc/sysconfig/network-scripts with the contents:
- Code: Select all
DEVICE=vlan0
BOOTPROTO=dhcp
ONBOOT=yes
So.
I want this interface to come up automatically on boot - with the IP address I want assigned to it. Given this situation, will it do so? I don't know what effect systemd has on the creation of these interfaces but I suspect the boot scripts in network-scripts are deprecated.
Does anyone here know the best way to proceed to make sure this interface reappears on each startup?