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
8 months agoChan
8 months agoBrittni
9 months agoDalene
9 months agoCharlene
9 months agoHannah
9 months agoVirgilio
9 months agoMalcolm
9 months agoEulah
9 months agoValentin
9 months agoStephanie
9 months agoLayla
9 months agoFrancesco
9 months agoTrevor
9 months ago