Bond/Vlan/Bridge
Hello friends,
i'm new here and have one question. i have virtual machine (CentOS 7), that have 3 nic:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.137 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::7c2f:a798:df68:40bd prefixlen 64 scopeid 0x20<link>
ether 08:00:27:39:c4:8c txqueuelen 1000 (Ethernet)
RX packets 7886 bytes 9089665 (8.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2834 bytes 416670 (406.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s8: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 08:00:27:c0:26:20 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 2032 (1.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s9: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 08:00:27:c0:26:20 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
1. i need to make bond with enp0s8/enp0s9
this is done with configuration files in /etc/sysconfig/network-scripts/bond0
2. then i need to make vlan over bond0
ifcfg-bond0.100
3. then i need to give two ip address on this vlan. do i need additional file for this or is it possible to write both addresses in ifcfg-bond0.100 file?
thanks in advance.
|