hi,
i have created a fresh install of centos7 and was able to change the ip through nmcli commands and after changing it i couldn't ping to google dns or gateway don't know where iḿ going wrong can anybody help me out plus i would also like to learn on how to assign static ips too.
here are the snapshots of files for the VM iḿ working on.
hi,
i have created a fresh install of centos7 and was able to change the ip through nmcli commands and after changing it i couldn't ping to google dns or gateway don't know where iḿ going wrong can anybody help me out plus i would also like to learn on how to assign static ips too.
here are the snapshots of files for the VM iḿ working on.
since iḿ using a minimal install i was not able to copy and paste code so here are some snapshots.
Not able to connect to the internet after configuring a static ip in centos 7
-
- Posts: 19
- Joined: 2017/11/24 12:10:18
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Not able to connect to the internet after configuring a static ip in centos 7
What is the output of:
Code: Select all
ip route
Code: Select all
cat /etc/sysconfig/network-scripts/ifcfg-*
-
- Posts: 5
- Joined: 2017/11/24 03:32:05
Re: Not able to connect to the internet after configuring a static ip in centos 7
check the /etc/resolv.conf if the dns ip is set.
if no,edit as follows and set name server IP address:
nameserver 8.8.8.8
nameserver 8.8.4.4
if no,edit as follows and set name server IP address:
nameserver 8.8.8.8
nameserver 8.8.4.4
Re: Not able to connect to the internet after configuring a static ip in centos 7
Apart from setting the static IP address, did you configure a suitable gateway address?