LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-06-2011, 03:03 PM   #1
brianm88
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Ubuntu router, almost working


after using 11.04 on my router/server for a long time, I've upgraded to 11.10 and rearranged my storage array now.

my network looks like this: Cablemodem -> eth0 -> eth1 -> switch -> other computers

Internet works fine on the server, i'm posting this message from it right now.

On the other computers, the server is giving them a proper ip. I can ping the server, I can ping any website, I can do nslookup on any site. But when I try to sign into a messenger or use the web browser, nothing happens. In internet explorer on the windows pc it just says "website found, waiting for reply" forever. I've let it auto-detect settings, I've let it run the diagnose problems dialog, and I've ipconfig /renew.

using a live ubuntu usb stick install on the other computers yields the same results, i can ping/nslookup etc, but browsers hang on "website found waiting for reply"

Here is my /etc/network/interfaces:
Quote:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
Here is dhcpd.conf:
Quote:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 208.67.222.222, 208.67.220.220;
#option domain-name "opendns.com";

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.100;
}
I have uncommented the 2 lines for forwarding in sysctl.conf.

I have made the nat.sh script and added it to init.d

I have added this to rc.local:
Quote:
/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE
I know I've made some small mistake somewhere and I'm just not spotting it. Does anybody see what's wrong ? Why isn't the windows pc fully functional ? It seems to me if ping and nslookup are working then I'm on the verge of full functionality.

here is the report from ifconfig:
Quote:

eth0 Link encap:Ethernet HWaddr 00:04:23:cc:cd:3d
inet addr:XXXXXXXXXXX Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:47987 errors:0 dropped:0 overruns:0 frame:0
TX packets:6866 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7198348 (7.1 MB) TX bytes:796136 (796.1 KB)
Interrupt:16

eth1 Link encap:Ethernet HWaddr 00:04:23:cc:cd:3c
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::204:23ff:fecc:cd3c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:849 errors:0 dropped:0 overruns:0 frame:0
TX packets:559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:118275 (118.2 KB) TX bytes:57787 (57.7 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Also, why is my mtu so low on eth0 ?
 
Old 11-06-2011, 03:33 PM   #2
brianm88
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Problem was the MTU setting on eth0....

ifconfig eth0 mtu 1500

fixed the problem. other computers can access anything now
 
  


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
Getting My Belkin Router working on a new Ubuntu install 115fixer Linux - Newbie 6 10-06-2010 10:19 PM
Wireless Router Still Not Working jdknshld Linux - Wireless Networking 3 09-15-2005 11:27 PM
router not working 0pal_t0ad Linux - Networking 1 07-21-2005 02:48 PM
router only half working. exodist Linux - Networking 0 06-01-2004 03:34 PM
linux router - 1 of 4 not working timlitw Linux - Networking 2 03-26-2004 07:55 AM

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

All times are GMT -5. The time now is 02:48 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