Pages

Friday, December 18, 2015

Working with Network on CentOS/RHEL 07 - Part 02

Home

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 status
Configured devices:
lo enp0s10 enp0s3 enp0s8 enp0s9
Currently 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-enp0s10
HWADDR=08:00:27:94:3E:02
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s10
UUID=4474b5b1-e576-45bd-babb-c3ce22d41166
ONBOOT=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-enp0s9
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s9
UUID=bb53a5ca-2dc3-4ebe-ba35-ad3664475fa9
ONBOOT=yes
HWADDR=08:00:27:B6:50:F3
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_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-enp0s8
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s8
UUID=b38fa076-ea97-44d2-a30c-05b3959a1775
ONBOOT=yes
HWADDR=08:00:27:74:9D:4B
IPADDR=192.168.248.202
PREFIX=32
GATEWAY=192.168.248.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

No comments:

Post a Comment