Two isolated NIC configurations
In the room requirements configuration two network cards, a network can be Sisu Network (eth0), a fixed only a few IP segments can be accessed (eth2). VLAN trunk mode is configured on the eth0 with VLAN ID 1004. The eth2 is a normal access mode. The network of eth0 and eth2 is isolated.
Adding virtual VLANs manually
vconfig1004ifconfig eth0.100410.128.4.1255.255.255.0 up
Cat ifcfg-eth0.1004 (Permanent VLAN)
DEVICE=eth0.1004BOOTPROTO=staticNM_CONTROLLED=yesIPADDR=10.128.4.1NETMASK=255.255.255.0GATEWAY=10.128.4.254ONBOOT=yes
Cat Ifcfg-eth2 (eth2 configuration)
DEVICE=eth2BOOTPROTO=staticIPADDR=10.254.0.20NETMASK=255.255.255.0GATEWAY=10.254.0.254ONBOOT=yesNM_CONTROLLED=yes
Cat Ifcfg-eth0 (eth0 configuration)
device= eth0 hwaddr=6 c:92 : Bf:04 : 4 e:3 A type= ethernet uuid=f38e349b-32 C6-42 f8-b75a-72 c5a3271c82 onboot=yes nm_controlled=yes bootproto=static
Cat route-eth0.1004 (add permanent route)
10.254.0.0/16 via 10.254.0.254 dev eth2192.168.0.0/16 via 10.254.0.254 dev eth2
Restart the NIC
-n
Two isolated NIC configurations