RedHat EX200 Exam - Topic 3 Question 51 Discussion
Part 1 (on Node1 Server)Task 1 [Managing Networking]Please create new network connection with existing interface (enp1s0) using provided values:IPv4: 172.25.X.10/255.255.255.0 (where X is your domain number: Domain15)Gateway: 172.25.X.2DNS server: 172.25.X.2Add the following secondary IP addresses statically to your current running connection. Do this in a way that does not compromise your existing settings:IPv4: 10.0.0.5/24 and set the hostname node1.domain15.example.com
A) Explanation:
*
[root@node1 ~]# nmcli connection show
[root@node1 ~]# nmcli connection add con-name static ifname enp1s0 type ethernet ipv4.addresses 172.25.15.10/24 ipv4.gateway 172.25.15.2 ipv4.dns 172.25.15.2
[root@node1 ~]# nmcli connection modify static ipv4.method manual connection.autoconnect yes
[root@node1 ~]# nmcli connection modify static +ipv4.addresses 10.0.0.5/24
[root@node1 ~]# nmcli connection up static
[root@node1 ~]# nmcli connection show
[root@node1 ~]# hostnamectl set-hostname node1.domain15.example.com
[root@node1 ~]# hostnamectl status
[root@node1 ~]# nmcli connection down static
*
[root@node1 ~]# nmcli connection up static
[root@node1 ~]# ip addr show
[root@node1 ~]# reboot
### For checking ###
[root@node1 ~]# ip addr show
[root@node1 ~]# netstat -nr
[root@node1 ~]# cat /etc/resolv.conf
Noemi
10 months agoChan
10 months agoBrittni
11 months agoDalene
11 months agoCharlene
11 months agoHannah
11 months agoVirgilio
11 months agoMalcolm
11 months agoEulah
11 months agoValentin
11 months agoStephanie
11 months agoLayla
11 months agoFrancesco
11 months agoTrevor
11 months ago