Professional Documents
Culture Documents
# nmcli connection add type ethernet con-name ens256 ifname ens256 ipv4.addresses
192.168.0.145/24 ipv4.dns 8.8.8.8 gw4 192.168.0.1 ipv4.method manual
# cd /etc/sysconfig/network-scripts/
# ls
# cat ifcfg-ens256
OR
# ifup ens256
# ip a
# ifconfig
# ping 192.168.0.145
OR edit connection file using vi editor and mention multiple IPv4 addressses there,
you can add multiple DNS also.
# cat ifcfg-ens256
# ip a
# cat ifcfg-ens256
# ip a
You can use nmtui also to add or edit a connection and to set IPv4, DNS, gateway
etc.
# nmtui
# ip a
To delete the connection & to remove connection file execute below command.
# ls
--------------
Assigning IPv6:
# hostnamectl
OR
# ifup ens256
# ip a
# ifconfig
# ping fddb:fe2a:ad1e::c0a8:8
ping -6 fddb:fe2a:ad1e::c0a8:8
--------------
To delete the network adaptor device (if it is a software device only) you can use
below command.
--------------
The Google Public DNS IPv6 addresses are as follows:
2001:4860:4860::8888
2001:4860:4860::8844