How to create a vlan interface and start at boot time. First check if the bounding module is loaded.
1 |
lsmod | grep 8021q |
/etc/sysconfig/network-scripts/ifcfg-solr
1 2 3 4 |
DEVICE=solr TYPE=Ethernet BOOTPROTO=none ONBOOT=yes |
/etc/sysconfig/network-scripts/ifcfg-solr.2018
1 2 3 4 5 6 7 8 9 |
DEVICE=solr.2018 IPADDR=10.10.18.51 NETWORK=10.10.18.0 NETMASK=255.255.254.0 GATEWAY=10.10.18.1 ONBOOT=yes BOOTPROTO=none USERCTL=no VLAN=yes |
To test just issue
1 2 3 |
/etc/init.d/network restart or ifup [if_name] |
To remove the new vlan
1 2 3 4 5 |
How to remove VLAN ID 2018? Type the following commands # ip link set dev solr.2018 down # ip link delete solr.2018 |
How to configure bonding First make sure the bonding module is loaded, then create the configuration below /etc/sysconfig/network-scripts/ifcfg-bond0
1 2 3 4 5 6 7 8 |
DEVICE=bond0 BONDING_MASTER=yes ONBOOT=yes MTU=9000 NETWORK=10.151.18.0 NETMASK=255.255.254.0 IPADDR=10.151.18.51 BONDING_OPTS="mode=1 miimon=100" |
/etc/sysconfig/network-scripts/ifcfg-dmznet_pvi […]