Cannot ping router or outside network
Hey all,
I recently had to replace my router. I have 2 Centos servers and a windows machine on my network. My mailserver and windows machines work fine. My DNS server will not ping the router and anything outside the network. I can ping all machines and DNS is working fine inside the network. The router also shows all computers connected and with the right IP addresses. Does not work with firewall down either. I have looked through all configuration files and cannot find anything wrong. I am not exactly a linux expert but everything was working perfectly on the old router. I would appreciate any help or ideas. Thanks |
Is the default gateway of the DNS machine set to the IP of the router?
|
Yep, gateway is set to router IP.
|
post your ifcfg-eth0, resolv.conf as well as the internal IP scheme for your new LAN.
|
Here are my ifcfg-eth0, resolv.conf, and route -n results. I added the Google DNS server in
there just trying stuff. It usually is not in there. Code:
route -n Code:
ifcfg-eth0 Code:
resolv.conf |
even though this is specific to CentOS 5.x its the same for 6.x
https://www.centos.org/docs/5/html/D...ng-client.html clean out your ifcfg-eth0 and restart your network and try again. everything should be provided by your DHCP server, be that your ISP, or your internal device. |
Thanks lleb, that worked. It seems what broke it was setting my router DNS ip setting to my network DNS server. On my old router I think I had it set up that way. Now, the only problem is I cannot get outside email. Internal email works fine. I had this problem when I initially set the mailserver up which is why I set up the DNS server but cannot recall how I got that to work.
|
have you forwarded proper ports on the new router to the mailservers internal IP?
|
I have all mail ports forwarded to the mailserver and port 53 forwarded to the dns server
|
can you telnet port 25 from the internet to the router IP at all & get a helo? like manually?
your new router potentially could have pulled a new external IP from your isp, perhaps you need to update the A record of your domain name provider to reflect it, if you haven't already. run a tcpdump on both interfaces of the router and the mail server to find out where traffic is getting stopped |
Quote:
the only time you need to manually provide gateway and subnet is when you are on static IP scheme like on a server. the DNS in linux is semi hit or miss if the DHCP server will provide or not the proper working DNS information. that is more on how the DHCP server is configured. a lot of SoHo routers and ISP devices are NOT properly configured for DHCP and thus fail to fully provide DNS for linux systems. in cases like that you just need to edit the resolv.conf and you are golden. |
Doh!!! In the port forwarding screen on the router, there is a little check box beside each entry that turns it on. I was thinking just adding the entry would turn it on. Once I checked all the boxes and hit save, everything starting working.
I really appreciate all the help. Thanks. |
lol that'll get ya
|
All times are GMT -5. The time now is 02:40 AM. |