ddgh
This commit is contained in:
parent
6b466684e8
commit
433f408e73
4
int
4
int
|
|
@ -45,7 +45,7 @@ timestamp=$(date +%s)
|
||||||
|
|
||||||
[ipv4]
|
[ipv4]
|
||||||
address1=$ip_s3
|
address1=$ip_s3
|
||||||
dns=192.168.3.2; 8.8.8.8;
|
dns=8.8.8.8;
|
||||||
gateway=$gt_s3
|
gateway=$gt_s3
|
||||||
method=manual
|
method=manual
|
||||||
|
|
||||||
|
|
@ -124,7 +124,7 @@ EOF
|
||||||
read -p "Введите родительский интерфейс: " vpa
|
read -p "Введите родительский интерфейс: " vpa
|
||||||
read -p "Введите тэг vlan: " id
|
read -p "Введите тэг vlan: " id
|
||||||
read -p "Введите ip-адрес: " ip
|
read -p "Введите ip-адрес: " ip
|
||||||
nmcli connection add type vlan con-name $Name ifname $Name dev $vpa id $id ipv4.addresses $ip
|
nmcli connection add type vlan con-name $Name ipv4.method manual ifname $Name dev $vpa id $id ipv4.addresses $ip
|
||||||
systemctl restart NetworkManager
|
systemctl restart NetworkManager
|
||||||
|
|
||||||
elif (( $num == 2)); then
|
elif (( $num == 2)); then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue