I just installed slack yesterday and i'm having some problem to connect my computer to internet.
IP : 172.20.5.108
Netmask : 255.255.0.0
Gateway : 172.20.0.1
DNS : 208.67.222.222 - 208.67.222.220
here is what my /etc/rc.d/rc.inet1.conf look like after i put my settings :
Code:
......
#Config information for eth0:
IPADDR[0]="172.20.5.108"
NETMASK[0]="255.255.0.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
......
#Default gateway IP address :
GATEWAY="172.20.0.1"
......
DEBUG_ETH_UP="yes"
......
If i ping a computer on the network :
Code:
#ping -c 5 172.20.3.102
PING 172.20.3.102 (172.20.3.102) 56(84) bytes of data.
64 bytes from 172.20.3.102: icmp_seq=1 ttl=128 time=1.17 ms
64 bytes from 172.20.3.102: icmp_seq=2 ttl=128 time=0.342 ms
64 bytes from 172.20.3.102: icmp_seq=3 ttl=128 time=0.350 ms
64 bytes from 172.20.3.102: icmp_seq=4 ttl=128 time=0.352 ms
64 bytes from 172.20.3.102: icmp_seq=5 ttl=128 time=0.329 ms
--- 172.20.3.102 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.329/0.510/1.178/0.334 ms
So it seems to be ok with the local network.
here is my /etc/resolv.conf :
Code:
search slackware.com
nameserver 213.244.0.15
nameserver 213.244.0.16
nameserver 208.67.222.222
nameserver 208.67.222.220
but if i try a :
Code:
#links www.google.fr
i have :
Code:
Error loading http://www.google.fr : Host not found
as i know the DNS are fine, i look my route :
Code:
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 172.20.0.1 0.0.0.0 UG 1 0 0 eth0
I think the 0.0.0.0 netmask for my gateway is weird and it also take a little longer for this line to appear so i decide to del it and to make a new route
Code:
#route del default
#route add default gateway 172.20.0.1 netmask 255.255.0.0 dev eth0
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.20.0.1 255.255.0.0 UG 1 0 0 eth0
localnet * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
it seems to be better as the line appear a lot faster now but i still can't reach the internet. If someone have an idea i take it.