View previous topic :: View next topic |
Author |
Message |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 4:32 pm Post subject: Cant Set A Static IP (SOLVED) |
|
|
here my /etc/conf.d/net
routes_eth0=( "default gw 192.168.1.1" )
config_eth0=( "192.168.1.107 netmask 255.255.255.0" )
it sets fine with no errors on boot but wont connect ??
PLEASE HELP
Last edited by paulb787 on Thu Dec 01, 2005 6:13 pm; edited 1 time in total |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 01, 2005 4:34 pm Post subject: |
|
|
what are the results of:
Code: | # ifconfig eth0
# route |
|
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 4:45 pm Post subject: |
|
|
ifconfig eth0
Quote: | eth0 Link encap:Ethernet HWaddr 00:11:11:6E:B1:16
inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3405 errors:0 dropped:0 overruns:0 frame:0
TX packets:3191 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2105951 (2.0 Mb) TX bytes:332921 (325.1 Kb)
|
route
Quote: | Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 |
|
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 01, 2005 4:50 pm Post subject: |
|
|
Can you ping your gateway? |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 4:54 pm Post subject: |
|
|
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.812 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.666 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.675 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.669 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.664 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.668 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=0.672 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.673 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.670 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=0.666 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=0.665 ms |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 01, 2005 4:54 pm Post subject: |
|
|
So what's the problem? Looks like it works. |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 5:02 pm Post subject: |
|
|
hmm no it doesnt 4 some reason?? firefox and konqueror wont connect?? i am behind a router if that means anything??
GOD THIS IS SO ANOYING |
|
Back to top |
|
 |
Voorhees51 Guru


Joined: 05 Nov 2003 Posts: 358
|
Posted: Thu Dec 01, 2005 5:03 pm Post subject: |
|
|
Can you ping out side your network, like your DNS servers, or google?
Try traceroute www.google.com and see how far you get,
Also try traceroute72.14.203.99 and see how far you get
Both of those traceroutes resolve to google doing it by IP could help determine if it is a DNS problem.
What kind of router is it? Store bought like Linksys, netgear, etc or homemaid box with like iptables?
--Just a thougt hope it helps somehow |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 01, 2005 5:15 pm Post subject: |
|
|
Have you set nameservers in /etc/resolv.conf?
If that's missing, you won't be able to resolve any domain names. |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 5:21 pm Post subject: |
|
|
resolv.conf has
Quote: | nameserver 68.87.64.196
nameserver 68.87.66.196 | WHICH IS CORRECT RIGHT??
but heres the traceroute results
traceroute www.google.com
traceroute 72.14.203.99
Quote: | 1 192.168.1.1 (192.168.1.1) 4.477 ms 0.631 ms 0.671 ms
2 10.244.96.1 (10.244.96.1) 13.244 ms 7.223 ms 12.543 ms
3 68.86.170.117 (68.86.170.117) 15.853 ms 9.854 ms 12.856 ms
4 68.86.168.86 (68.86.168.86) 8.607 ms 9.700 ms 7.922 ms
5 68.86.168.102 (68.86.168.102) 18.991 ms 9.507 ms 12.814 ms
6 68.86.168.105 (68.86.168.105) 14.420 ms 8.026 ms 10.254 ms
7 68.86.168.154 (68.86.168.154) 22.165 ms 13.134 ms 9.902 ms
8 12.126.150.5 (12.126.150.5) 12.237 ms 11.389 ms 10.232 ms
9 12.123.32.106 (12.123.32.106) 21.494 ms 22.928 ms 24.093 ms
10 12.122.1.66 (12.122.1.66) 22.689 ms 24.148 ms 22.104 ms
11 12.122.12.121 (12.122.12.121) 22.815 ms 32.931 ms 22.885 ms
12 12.123.21.137 (12.123.21.137) 75.427 ms 40.286 ms 26.527 ms
13 192.205.32.122 (192.205.32.122) 41.716 ms 37.868 ms 41.480 ms
14 193.251.240.85 (193.251.240.85) 36.406 ms 36.788 ms 37.998 ms
15 193.251.240.153 (193.251.240.153) 52.729 ms 193.251.241.157 (193.251.241.15
7) 85.300 ms 193.251.240.153 (193.251.240.153) 49.563 ms
16 193.251.240.134 (193.251.240.134) 55.855 ms 55.835 ms 60.605 ms
17 193.251.242.209 (193.251.242.209) 68.329 ms 58.196 ms 59.636 ms
18 193.251.240.137 (193.251.240.137) 58.245 ms 72.705 ms 59.228 ms
19 193.251.249.30 (193.251.249.30) 56.780 ms 70.512 ms 60.815 ms
20 66.249.95.253 (66.249.95.253) 53.238 ms 53.305 ms 51.915 ms
21 72.14.238.89 (72.14.238.89) 68.221 ms 59.362 ms 55.514 ms
22 64.233.175.94 (64.233.175.94) 66.423 ms 68.185 ms 72.026 ms
23 72.14.203.99 (72.14.203.99) 55.724 ms 53.403 ms 54.327 m |
Last edited by paulb787 on Thu Dec 01, 2005 5:24 pm; edited 1 time in total |
|
Back to top |
|
 |
JackDog Apprentice


Joined: 09 Sep 2004 Posts: 297 Location: St. Louis, Missoura
|
Posted: Thu Dec 01, 2005 5:23 pm Post subject: |
|
|
You killed dhcpcd right? _________________ Are you intolerant of intolerant people? Tired of being PC yet? |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 5:24 pm Post subject: |
|
|
?? what do u mean?? |
|
Back to top |
|
 |
msalerno Veteran


Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Thu Dec 01, 2005 5:32 pm Post subject: |
|
|
It sounds like a DNS problem and DHCP problem since the Ip's do not match (ifconfig and conf.d/net)
Check the output of the following commands:
# dig yahoo.com @68.87.64.196
# dig yahoo.com @68.87.66.196
Dig is part of net-dns/bind-tools
Root DNS servers: ftp://ftp.rs.internic.net/domain/named.root
Last edited by msalerno on Thu Dec 01, 2005 5:47 pm; edited 2 times in total |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 5:42 pm Post subject: |
|
|
i get this 4 both dns's
Quote: |
; <<>> DiG 9.3.1 <<>> yahoo.com @68.87.66.196
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11916
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;yahoo.com. IN A
;; ANSWER SECTION:
yahoo.com. 248 IN A 216.109.112.135
yahoo.com. 248 IN A 66.94.234.13
;; Query time: 56 msec
;; SERVER: 68.87.66.196#53(68.87.66.196)
;; WHEN: Thu Dec 1 12:39:54 2005
;; MSG SIZE rcvd: 59 |
and nothing 4
dig yahoo.com |
|
Back to top |
|
 |
msalerno Veteran


Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Thu Dec 01, 2005 5:50 pm Post subject: |
|
|
So just typing in the below line returns nothihng?
# dig yahoo.com
But when you specify the DNS servers you have in your resolv.conf, you get the proper results?
What kind of router do you have? |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 5:55 pm Post subject: |
|
|
linksys wrt54gs?? never had a problem setting a static ip in windows?? |
|
Back to top |
|
 |
vampares n00b

Joined: 29 Nov 2005 Posts: 28
|
Posted: Thu Dec 01, 2005 5:58 pm Post subject: |
|
|
this is what I have for /etc/conf.d/net
Code: |
RC_AUTO_INTERFACE=no
config_eth1=("192.168.100.175 netmask 255.255.0.0 broadcast 192.168.100.255")
routes_eth1=("default via 192.168.100.254")
#modules=("iproute2")
#ifconfig_eth0=("192.168.100.175/24")
#routes_eth0=("default gw 192.168.100.254")
|
I hope that break your gentoo  |
|
Back to top |
|
 |
msalerno Veteran


Joined: 17 Dec 2002 Posts: 1338 Location: Sweating in South Florida
|
Posted: Thu Dec 01, 2005 6:09 pm Post subject: |
|
|
Did you try setting your nameserver in your resolv.conf to your router ip? 192.168.1.1
If not, go ahead.
Also, do you get any messages when you restart your network adapter?
/etc/init.d/net.eth0 restart |
|
Back to top |
|
 |
paulb787 Apprentice

Joined: 14 Nov 2005 Posts: 250
|
Posted: Thu Dec 01, 2005 6:12 pm Post subject: |
|
|
LOL u know what it was?
i had this
(net)
Quote: |
routes_eth0=( "default gw 192.168.1.1" )
config_eth0=( "192.168.1.107 netmask 255.255.255.0" ) |
i changed it to this
Quote: | config_eth0=( "192.168.1.107 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.1.1" ) |
Thank you guys 4 u were all very helpful!! |
|
Back to top |
|
 |
|