Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp works, static IP works on LAN, but not internet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TheAgent
n00b
n00b


Joined: 23 May 2003
Posts: 29
Location: Waukesha, WI

PostPosted: Tue Jun 03, 2003 10:21 pm    Post subject: dhcp works, static IP works on LAN, but not internet Reply with quote

Here's my problem:

I can connect to the LAN/Internet just fine if I tell eth0 to use dhcp (in /etc/conf.d/net), but if I set it to a static IP address (with the same netmask and broadcast and gateway that I got with dhcp), I can only access the LAN with this machine - but not the internet.

I'd be content with DHCP if not for the fact that I need to use a specific static IP address so that the firewall (not under my control) will allow requests on ports 21 and 80...

Any ideas?
_________________
TheAgent
Total Linux N00b

Shuttle SN41G2:
Athlon XP 2100+
512 MB Corsair PC2700
40GB Maxtor
NForce2 Soundstorm, VGA, Network
Back to top
View user's profile Send private message
marshall_j
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 98
Location: NZ

PostPosted: Tue Jun 03, 2003 11:11 pm    Post subject: Reply with quote

Have you got the gateway set?
Maybe add something like:
Code:

route add default gw xxx.xx.xx.xx dev ethx
Back to top
View user's profile Send private message
mta
n00b
n00b


Joined: 02 Jun 2003
Posts: 28
Location: Australia

PostPosted: Tue Jun 03, 2003 11:16 pm    Post subject: Reply with quote

Hi Agent,

check /etc/resolv.conf to make sure there is a valid nameserver in there, like your ISP's .. otherwise it will seem like a connection but no traffic flowing :)
Back to top
View user's profile Send private message
TheAgent
n00b
n00b


Joined: 23 May 2003
Posts: 29
Location: Waukesha, WI

PostPosted: Wed Jun 04, 2003 3:41 am    Post subject: Reply with quote

So I spoke with our net-admin and he says it has to be on a certain physical part of the network, otherwise the switches wont allow any box with a non-dhcp-ed IP to get through...

gah... stupid net admins
_________________
TheAgent
Total Linux N00b

Shuttle SN41G2:
Athlon XP 2100+
512 MB Corsair PC2700
40GB Maxtor
NForce2 Soundstorm, VGA, Network
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum