LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can connect broadband but can't connect Internet (https://www.linuxquestions.org/questions/linux-networking-3/can-connect-broadband-but-can%27t-connect-internet-140596/)

satimis 01-30-2004 11:30 PM

Can connect broadband but can't connect Internet
 
Hi all folks,

Gentoo 1.4
Connection = broadband via cable modem
ADSL
Dynamic ISP
=======
(Remark: Iptables not up yet)

My PC can connect ISP but cut off from Internet.

"ifconfig" and "ping ISP" showing connection

on /etc/conf.d/net
I have tried following combination without result

1)
iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 225.255.255.0"
iface_eth0="dhcp"
dhcpcd="..."
alias_eth0="192.168.0.1 192.168.0.2"
# defaultroute

2)
# iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 225.255.255.0"
iface_eth0="dhcp"
dhcpcd="..."
alias_eth0="192.168.0.1 192.168.0.2"
defaultroute

3)
# iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 225.255.255.0"
iface_eth0="dhcp"
dhcpcd="..."
alias_eth0="192.168.0.1 192.168.0.2"
# defaultroute

4)
# iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 225.255.255.0"
iface_eth0="dhcp"
dhcpcd="..."
# alias_eth0="192.168.0.1 192.168.0.2"
# defaultroute

5)
# iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 225.255.255.0"
iface_eth0="dhcp"
dhcpcd="..."
alias_eth0="192.168.0.1 192.168.0.2"
gateway=isp

Kindly advise how to fix the problem.

TIA

B.R.
satimis

Breezwell 01-31-2004 12:35 AM

The only line you need uncommented is the following:

iface_eth0="dhcp"

Leave everything else commented unless you are using a gateway or have another NIC in the system being used for a local network.

satimis 01-31-2004 03:54 AM

Quote:

Originally posted by Breezwell
The only line you need uncommented is the following:

iface_eth0="dhcp"

Leave everything else commented unless you are using a gateway or have another NIC in the system being used for a local network.

Hi,

Thanks for your advice.

Problem still remained after leaving only "eface_etho="dhcp" on /etc/conf.d/net, Broadband connected, ping ISP possisble but cut off from Internet

Tried
ping -c 3 www.yahoo.com
ping -c 3 www.google.com
etc.
all impossible

Sorry for not mentioning there is another ethernet in my previous posting.

This PC has 2 ethernet cards
eth0 - to broadband
eth1 - connected to another PC for sharing broadband if this PC is not connected to broadband.

At time of test eth1 was disconnected.

B.R.
satimis

scheidel21 01-31-2004 11:14 AM

You say you are able to ping the ISP, when did you get this, is it Comcast? It may be you need to register your NIC with them before they let you out of their gateway.

--Alex

DavidPhillips 01-31-2004 07:58 PM

Reset the power on the modem, then start the interface.

If you get no errors and an ip address on the interface dhcp seems to be working. Maybe you can check /etc/resolv.conf to see if the nameservers are there, and make sure you have the firewall open to these servers.


All times are GMT -5. The time now is 09:18 PM.