LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2017, 12:21 PM   #1
shan2batman
LQ Newbie
 
Registered: Nov 2017
Posts: 2

Rep: Reputation: Disabled
Not able to connect to the internet after configuring a static ip in centos 7


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.

https://s33.postimg.org/9cd871v4b/ipaddress.png

https://s33.postimg.org/i7e2hl723/nsswitch.png

https://s33.postimg.org/40ybmcoh7/ping_gateway.png

https://s33.postimg.org/5srah9uzf/ping_google.png
 
Old 12-04-2017, 04:58 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Images are way to small to read.

What virtualization software are you running? i.e. VMware, VirtualBox etc.

How is your virtual ethernet adapter configured?

What are you using for your IP address?

http://ask.xmodulo.com/configure-sta...s-centos7.html
 
Old 12-04-2017, 05:18 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,718

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
Not being able to connect to the internet is probably a function of
1. Fulfilling your isp's requirements for a connection (Which we don't know).
2. Your proper config of your network card, resolv.conf and routing generally

Your images might make good icons, but when zoomed they're out of focus. Transcribe stuff if you can't install gpm.
 
  


Reply

Tags
centos7, static ip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Static IP Addresses in Centos 7 harshld Linux - Newbie 5 12-01-2016 06:48 AM
Configuring Static IP Addresses in Centos 7 harshld Linux - Newbie 1 12-01-2016 06:02 AM
[SOLVED] Can't connect to internet using a static ip Nenya Linux From Scratch 10 01-17-2011 04:07 PM
Cannot reach the internet after configuring Static IP Mitchal Linux - Newbie 4 01-16-2011 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration