23 lines
509 B
Plaintext
23 lines
509 B
Plaintext
|
|
#!/bin/bash
|
||
|
|
ifconfig ens8 up
|
||
|
|
|
||
|
|
modprobe 8021q
|
||
|
|
vconfig add ens8 100
|
||
|
|
vconfig set_flag ens8.100 1 1
|
||
|
|
ifconfig ens8.100 192.168.100.3 netmask 255.255.255.0 up
|
||
|
|
|
||
|
|
echo 0 > /sys/class/net/ens8/device/sriov_numvfs
|
||
|
|
sleep 1
|
||
|
|
echo 3 > /sys/class/net/ens8/device/sriov_numvfs
|
||
|
|
sleep 1
|
||
|
|
|
||
|
|
ifconfig ens8f3 up
|
||
|
|
ip link set ens8 vf 2 vlan 200
|
||
|
|
ifconfig ens8f3 192.168.200.3 netmask 255.255.255.0
|
||
|
|
|
||
|
|
ifconfig enp7s0 up
|
||
|
|
ifconfig enp8s0 up
|
||
|
|
ifconfig ens8f1 up
|
||
|
|
ifconfig ens8f2 up
|
||
|
|
ifconfig ens8f3 up
|
||
|
|
ifconfig ens8f4 up
|