View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Tue Jun 26, 2007 9:34 pm Post subject: LAN connection problem |
|
|
I cant get onto the internt from my LAN clients. the connection times out.
USB modem ->www
CAT5 -->LAN
Code: |
hepworth ~ # cat /etc/conf.d/net |grep -v '#'
config_eth0=( "192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255" )
config_ppp0=( "ppp" )
plugins_ppp0=(
)
pppd_ppp0=(
)
link_ppp0='0.38'
plugins_ppp0=( 'pppoa' )
pppd_ppp0=( updetach noauth debug defaultroute noaccomp nobsdcomp noccp
nodeflate nopcomp novj novjccomp child-timeout 60 )
function preup() {
if [[ "$1" = "ppp0" ]] ; then
modprobe -q speedtch
return 0
fi
}
hepworth ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:59:C6:FB:C8
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2d0:59ff:fec6:fbc8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:260 errors:0 dropped:0 overruns:0 frame:0
TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28958 (28.2 Kb) TX bytes:20242 (19.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:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1270 (1.2 Kb) TX bytes:1270 (1.2 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:80.42.28.101 P-t-P:212.74.111.224 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:6195 (6.0 Kb) TX bytes:3395 (3.3 Kb)
hepworth ~ # |
for some reason the USB modem connection isnt writing a /etc/resolv.conf file so Ive made one
Code: |
hepworth ~ # cat /etc/resolv.conf
# Generated by dhcpcd for interface eth0
nameserver 127.0.0.1
nameserver 212.135.1.36
nameserver 195.188.53.175
hepworth ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
lo99.lon-0-dsl. * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default lo99.lon-0-dsl. 0.0.0.0 UG 0 0 0 ppp0
hepworth ~ # |
and from the windows client
Code: |
C:\DOCUME~1\ANDREW>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : home.nw
IP Address. . . . . . . . . . . . : 192.168.0.247
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.100
C:\DOCUME~1\ANDREW>ping 192.168.0.100
Pinging 192.168.0.100 with 32 bytes of data:
Reply from 192.168.0.100: bytes=32 time<1ms TTL=64
Reply from 192.168.0.100: bytes=32 time<1ms TTL=64
Reply from 192.168.0.100: bytes=32 time<1ms TTL=64
Reply from 192.168.0.100: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.0.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\DOCUME~1\ANDREW>ping www.google.co.uk
Pinging www.l.google.com [66.102.9.99] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 66.102.9.99:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\DOCUME~1\ANDREW>route PRINT
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 07 e9 cf b5 b1 ...... Intel(R) PRO/100 M Network Connection - Packet S
cheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.100 192.168.0.247 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.247 192.168.0.247 20
192.168.0.247 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.255 255.255.255.255 192.168.0.247 192.168.0.247 20
224.0.0.0 240.0.0.0 192.168.0.247 192.168.0.247 20
255.255.255.255 255.255.255.255 192.168.0.247 192.168.0.247 1
Default Gateway: 192.168.0.100
===========================================================================
Persistent Routes:
None
C:\DOCUME~1\ANDREW> |
_________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
Stonic n00b
Joined: 03 Jun 2007 Posts: 47
|
Posted: Wed Jun 27, 2007 5:50 am Post subject: |
|
|
Have you set up DNS / NAT yet?
If the computers on the LAN can not even resolve DNS, than you might need to set that up..
-Check out this guide for step-by-step instructions if you're not sure.
http://www.gentoo.org/doc/en/home-router-howto.xml
Hope that helps, good luck. |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Wed Jun 27, 2007 6:13 am Post subject: |
|
|
IP addresses given out by dnsmasq, which should do the NAT'ing _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
mrness Retired Dev
Joined: 17 Feb 2004 Posts: 375 Location: bucharest.ro
|
Posted: Wed Jun 27, 2007 2:39 pm Post subject: Re: LAN connection problem |
|
|
thecooptoo wrote: |
for some reason the USB modem connection isnt writing a /etc/resolv.conf file so Ive made one
|
because you didn't set "usepeerdns" in pppd_ppp0.
thecooptoo wrote: |
IP addresses given out by dnsmasq, which should do the NAT'ing
|
cute... but is WRONG!
I advise you to read the page that Stonic gave you. |
|
Back to top |
|
|
|