Network Settings in RHEL-7

[root@localhost Desktop]# nmcli con add type "ethernet" con-name corvit ifname enp0s3 ip4.10.0.2.1 gw4 10.0.2.15
Error: Unexpected argument 'ip4.10.0.2.1'
[root@localhost Desktop]# nmcli con add type "ethernet" con-name corvit ifname enp0s3 ip410.0.2.1 gw4 10.0.2.15Error: Unexpected argument 'ip410.0.2.1'
[root@localhost Desktop]# nmcli con add type "ethernet" con-name corvit ifname enp0s3 ip4 10.0.2.1 gw4 10.0.2.15
Connection 'corvit' (1f640d9a-f63e-471e-8e43-5fc99a38899a) successfully added.
[root@localhost Desktop]# nmcli con up corvit
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)
[root@localhost Desktop]# nmcli con mod corvit ipv4.method static
[root@localhost Desktop]# nmcli con mod corvit connection.autoconnect yes
[root@localhost Desktop]# nmcli con up corvit
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
[root@localhost Desktop]# nm-connection-editor

Comments

Popular Posts