View previous topic :: View next topic |
Author |
Message |
TheAgent n00b
Joined: 23 May 2003 Posts: 29 Location: Waukesha, WI
|
Posted: Tue Jun 03, 2003 10:21 pm Post subject: dhcp works, static IP works on LAN, but not internet |
|
|
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 |
|
|
marshall_j Tux's lil' helper
Joined: 22 Jan 2003 Posts: 98 Location: NZ
|
Posted: Tue Jun 03, 2003 11:11 pm Post subject: |
|
|
Have you got the gateway set?
Maybe add something like:
Code: |
route add default gw xxx.xx.xx.xx dev ethx
|
|
|
Back to top |
|
|
mta n00b
Joined: 02 Jun 2003 Posts: 28 Location: Australia
|
Posted: Tue Jun 03, 2003 11:16 pm Post subject: |
|
|
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 |
|
|
TheAgent n00b
Joined: 23 May 2003 Posts: 29 Location: Waukesha, WI
|
Posted: Wed Jun 04, 2003 3:41 am Post subject: |
|
|
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 |
|
|
|