LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-04-2015, 04:16 AM   #1
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Smile CentOS no internet


hello guys, need your help.

got a Linux Centos box, it's not able to connect to internet.

Centos Box is on DMZ network.
IP set as static.
DNS set as static (DNS are public IP).

Can ping other Linux machines on the DMZ. and other Linux machine can also ping this CentOS box.

every time I ping a public DNS such as 8.8.8.8 it's not able to connect 100% packet loss.


Centos is able to ping gateway.

any ideas is greatly appreciated. Thank you.
 
Old 03-04-2015, 05:22 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,678

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
Check your routing

Is your gateway set as the default route on this box? It appears that routing to the world is what is broken, so that may be the only missing piece.
 
Old 03-04-2015, 05:26 AM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
How rounting table looks. You said you are able to ping the default gateway. Does your route table shows the correct default gateway? Use
Code:
route -n
and check the output.

If routing table is correct and you are able to ping the default gateway then you have to check something on the router from which the traffic is going to internet and check whether this machine is allowed to access internet?

It will be good to take a packet trace and see what exactly is going on.
 
Old 03-04-2015, 07:05 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
i tried route -v

the default gateway is the correct subnet

ip - 192.168.1.25
gateway - 192.168.1.1 (gateway same as other linux)

Last edited by JJJCR; 03-04-2015 at 07:15 AM. Reason: edit
 
Old 03-04-2015, 07:05 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Question

---

Last edited by JJJCR; 03-04-2015 at 07:07 AM. Reason: delete
 
Old 03-04-2015, 07:06 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Question subnet

---

Last edited by JJJCR; 03-04-2015 at 07:07 AM. Reason: delete
 
Old 03-04-2015, 07:17 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
it's actually setting on a Hyper-V box.

but if i just use the internal network not the DMZ the Centos box is able to connect to the internet.
 
Old 03-04-2015, 07:25 AM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
When you say internal network I am assuming private internet network. So that is it you have to check that what happens when you do it via DMZ. As I said it in my previous post it will be good idea to run a packet trace to get more details. A better idea would be running packet trace on both you CentOS machine and the next hop which I am assuming to be your router in DMZ.
 
Old 03-05-2015, 04:10 AM   #9
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by T3RM1NVT0R View Post
When you say internal network I am assuming private internet network. So that is it you have to check that what happens when you do it via DMZ. As I said it in my previous post it will be good idea to run a packet trace to get more details. A better idea would be running packet trace on both you CentOS machine and the next hop which I am assuming to be your router in DMZ.
hi T3RMINVT0R can you guide me on how to do the packet trace?

Thanks.
 
Old 03-05-2015, 04:15 AM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
one issue i notice my internal network (private network) is using DHCP and internet works fine.

DMZ needs to set static i guess that's where the issue comes out. there is no internet.

other Linux which are physical servers has no issues on the DMZ, only this centos box which is setting on hyper-v.

any one who has the same issue on hyper-v and able to solve it please help.

Thanks.
 
Old 03-05-2015, 04:52 AM   #11
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Here is the howto on taking packet capture: http://www.tecmint.com/12-tcpdump-co...-sniffer-tool/

You would also want to download wireshark as it is a pretty good tool for taking / analyzing packet captures.

If I am getting it correctly you have physical boxes in DMZ which can connect to internet. Hyper-V is one of the physical box in that DMZ and on top of that you have got CentOS guest running. If my assumption is correct then my first question will be if you are able to connect to internet from Hyper-V machine. If yes then this doesn't appear to an issue with the router / gateway instead it appears to be an issue with the bridge that is configured between guest (CentOS) and the host (Hyper-V)

It will be good to know how it has been set to connect to internet.
 
1 members found this post helpful.
Old 03-05-2015, 07:31 PM   #12
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
The guest CentOS running on Hyper-V is able to connect to the internet if it is set to DHCP and connected via private network.

But assigning static IP via DMZ, CentOS is only able to browse the DMZ but not the internet.

I had checked with Technet forum, they said it could be a Hyper-V issue.

Thanks.
 
Old 03-06-2015, 02:32 AM   #13
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Yes pretty much possible. If this is the first Guest on Hyper-V host and if never worked before then it is very much possible to be an issue with Hyper-V. Also, other physical boxes within DMZ with static IP are just working fine that explains.
 
Old 03-09-2015, 02:22 AM   #14
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Wink

Quote:
Originally Posted by T3RM1NVT0R View Post
Yes pretty much possible. If this is the first Guest on Hyper-V host and if never worked before then it is very much possible to be an issue with Hyper-V. Also, other physical boxes within DMZ with static IP are just working fine that explains.
Yes THEY just don't want to play well with Linux system.. I think so.. but VMWare I think should be fine but cost is one thing.
 
Old 03-09-2015, 02:49 AM   #15
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
How significant this box is? If it is not of much importance then you can go with CentOS machine running KVM and on top of that you can create guest VMs.
 
  


Reply



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
Can't get to the internet with my centos linux uwa45 Linux - Networking 1 11-24-2010 08:10 PM
internet configuration on CentOS. avee137 Linux - Newbie 4 05-20-2010 08:53 AM
configuring internet in CentOS avee137 Linux - Newbie 8 05-07-2010 05:04 AM
EXACTLY how do I access Internet from CentOS 5.0? michaeltipton2222 Linux - Newbie 2 11-01-2007 02:02 PM
Cannot Connect to Internet; CentOS lucknowm62 Linux - Networking 8 08-26-2007 01:27 PM

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

All times are GMT -5. The time now is 11:27 PM.

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
Open Source Consulting | Domain Registration