LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2016, 07:50 PM   #1
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Rep: Reputation: Disabled
PC connected to Devil Linux router has no internet connection.


Hello,

I just installed and configured Devil Linux and has connectivity to the internet. I can ping google.com.

eth0 is the WAN ( connected to plain cable modem )
eth1 is the LAN ( connected to a PC )

DHCP is turned on for eth1 to hand out IP's on the LAN.

The PC coonected to LAN has no internet connection but gets this..
TCP/IP info of PC
IP: 192.168.1.100
Sub: 255.255.255.0
Gateway: 192.168.1.254
I can ping the routers IP ( 23.25.17.211.86)

The Devil Linux router gets something like this dynamically from the ISP..( I made this up because the whole world could see this)
This is very similier though..
IP: 23.25.17.211.86
Sub: 255.255.252.0
GW: 23.25.17.210.1

I saw the documentation for adding routes in the network config files but I have no idea if I'm supposed to add routes in both eth0 or eth1 file or what.

Im tryinf to get this router going but I'm stuck.
 
Old 06-26-2016, 11:50 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Can you try to use zeroshell?
 
Old 06-26-2016, 03:01 PM   #3
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks Keruskerfuerst, I will do that.

The Devil Linux router can ping google.com but the PC connected to the LAN port can't

I enabled the firewall. Now the PC on the LAN port (eth1) has internet connectivity. I learned that the routing is done automatically. No modify the routes because I just have one labn segment.
But hostnames are not being resolved on the internet. The PC can ping IP's but not the names.

Example,
On the PC I can't ping google.com but can ping the IP address of google.com.

I have DNS BIND started on the Devil Linux router.

Now on the Devil Linux router..
Do I have to make entries in a config file somewhere?
Do I have to do anything with dnsmasque?
 
Old 06-26-2016, 03:23 PM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
What does the Win PC have for a "DNS Server"?
(cmd: ipconfig/all)

p.s. I googled:
network debug tutorial windows|linux

to find some tools, esp. like
netstat -rn
 
Old 06-26-2016, 03:32 PM   #5
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
The PC has 192.168.1.1 for DNS. Which was dynamically retrieved from DHCP on Devil Linux router.

I forgot to mention: I'm sticking with Devil Linux.Period.

Last edited by Earlydayrambler; 06-26-2016 at 03:36 PM. Reason: forgot to mention
 
Old 06-26-2016, 04:08 PM   #6
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
How did you "enable the firewall"? Per http://www.devil-linux.org/documenta...ml#idp12045824 ?
The next section (table 1.4) had me confused by saying:
"NOTE: for a DHCP server you need to assign a static IP address."
but I'm guessing this means the LAN (not WAN/ISP which is dynamic) side.
'worst case', you could post all your config choices here... ;-(

Maybe, VERY 'maybe', it does need something else "enabled", as in:
https://wiki.openwrt.org/doc/howto/dhcp.dnsmasq (& maybe restart some daemon)
The more I google, the more it seems to be dnsmasq.conf (my wild guess tho)
( https://mike632t.wordpress.com/2013/...reless-router/ )
Obscure deep troubleshooting: tcpdump dns req pkts & strace dhcpd process
Here's a ridiculous kluge that might/likely work: configure the *Win PC OS* to use the *real DNS* address (that the Linux uses, instead of the router box 192.168.1.1 ; Linux should blindly forwarded to ISP...)

Forgive my trying to help when I'm not experienced in this particular area.
(Also, I do understand that changing to another distro would be like throwing out a puzzle simply because it's not yet complete;-) It just needs another piece to be put in place!
Please do post the exact/detailed solution, to help others in the future. Thanks & best wishes.

Last edited by Jjanel; 06-26-2016 at 06:37 PM.
 
Old 06-26-2016, 04:25 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
When the firewall box gets an IP from the ISP, it should also get DNS server addresses. It could be that tcp/udp port 53 is blocked, and even though DNS servers are listed in the configuration, the box cannot communicate with them. OR the firewall box might be configured to use local DNS servers. You can try these DNS servers to check things out: 8.8.8.8 and 8.8.4.4. Because of how the DNS system works, you need 2 servers.
 
1 members found this post helpful.
Old 06-26-2016, 06:27 PM   #8
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Jjanel,
Devil Linux has a easy to use setup program in which you can enable the firewall.
Also, for the WAN side you don't need a static IP but instead you CAN set eth0 for DHCP which will retreive all TCP/IP from your ISP.
Thanks for your help.

AwesomeMachine,
Thanks for leading me in the right direction. I decided to use the same DNS servers listed in /etc/resolv.conf for the DNS entries in the DHCP setup program included in Devil Linux. Those DNS Servers listed in resolv.conf where the ones provided by my ISP. Now all PC's on the LAN can resolv external hostnames. Problem solved!

I'm lovin'it.
 
  


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
[SOLVED] Dial-up internet connection unavailable if ethernet connected to LAN router LittleOldLady Linux - Newbie 3 12-19-2013 04:03 AM
Sharing internet connection from eth1 with a router connected to eth0 Atdeb Linux - Networking 3 10-06-2013 09:01 PM
Connected to router but not internet jberkery Linux - Networking 2 02-25-2006 02:04 PM
Connected to router but not the internet? chri5 Ubuntu 8 11-13-2005 05:29 AM
Connected, but can't see router, internet dudboi Linux - Networking 4 08-17-2004 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:01 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
Open Source Consulting | Domain Registration