Home
Network Configuration Using a Text User Interface (nmtui)
Network Configuration Using a Text User Interface (nmtui)
- Installing Network Configuration  Text User Interface
[root@localhost ~]# yum install NetworkManager-tui
- Setting up connection name to an interface using nmtui, first we will check list of active devices.
[root@testvm07002 ~]# /etc/init.d/network statusConfigured devices:lo enp0s10 enp0s3 enp0s8 enp0s9Currently active devices:lo enp0s3 enp0s8 enp0s9 enp0s10
- To change parameters for a connection name
[root@localhost ~]# nmtui edit enp0s10
- Various Values specified in above screenshot can be modified as per the requirements, those are listed below,
·  Profile Name :- the Connection Name or Ethernet Name visible on OS
· Device :- MAC address of physical Interface/Ethernet Device
· IPV4 Configuration :- Automatic(DHCP), Manual, Shared, Disabled, Link-Local
· Addresses :- IP addresses to be assigned to the interface
· Gateway :- IP address of Gateway server, Not required in case of Proxy based implementations/setups
· DNS Servers :- IP address of DNS servers
· Routing :- Additional route to be added can be specified in this section
- Files those are modified for the hostname changes are as shown below,
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s10HWADDR=08:00:27:94:3E:02TYPE=EthernetBOOTPROTO=dhcpDEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=enp0s10UUID=4474b5b1-e576-45bd-babb-c3ce22d41166ONBOOT=yes
- Setting up dhcp ip address to an interface using nmtui
[root@localhost ~]# nmtui
- Files those are modified for the connection profile changes are as shown below,
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s9TYPE=EthernetBOOTPROTO=dhcpDEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_FAILURE_FATAL=noNAME=enp0s9UUID=bb53a5ca-2dc3-4ebe-ba35-ad3664475fa9ONBOOT=yesHWADDR=08:00:27:B6:50:F3PEERDNS=yesPEERROUTES=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yes
- Setting up static ip address to an interface using nmtui
[root@localhost ~]# nmtui
- Files those are modified for the connection profile changes are as shown below,
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s8TYPE=EthernetBOOTPROTO=noneDEFROUTE=noIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_FAILURE_FATAL=noNAME=enp0s8UUID=b38fa076-ea97-44d2-a30c-05b3959a1775ONBOOT=yesHWADDR=08:00:27:74:9D:4BIPADDR=192.168.248.202PREFIX=32GATEWAY=192.168.248.1IPV6_PEERDNS=yesIPV6_PEERROUTES=yes









No comments:
Post a Comment