LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   super newbie eth0 to broadband modem (https://www.linuxquestions.org/questions/linux-networking-3/super-newbie-eth0-to-broadband-modem-121904/)

qwijibow 12-02-2003 06:04 AM

super newbie eth0 to broadband modem
 
Hey guys...
i have an ethernet ccard which linux detected dureing bootup (kudzu ?)
but have no idea how to get it working.

i have tried the redhat-confog-network
and redhat-control-netowork tools

but cannot activate the eth0 device....
and am unsure how to proceed ???

the eth0 is conneted to a Cable Modem.

NO ROUTERS
NO FIREWALL
NO NOTHING to complicate anything..

just stuck in a realteck network card....
and hooked up the net cable to a cable modem !

thanKs

tiger3 12-02-2003 06:40 AM

First see if the card is configured, see if it is working. Enter the following command and you should see the eth0 output as shown. If not it needs configuring.

/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:22:00:67:18
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:35470 errors:1 dropped:2 overruns:1 frame:0
TX packets:22157 errors:0 dropped:0 overruns:13 carrier:0
collisions:0 txqueuelen:100
RX bytes:28239095 (26.9 Mb) TX bytes:2968873 (2.8 Mb)
Interrupt:9

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:102735 errors:0 dropped:0 overruns:0 frame:0
TX packets:102735 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7019288 (6.6 Mb) TX bytes:7019288 (6.6 Mb)

If eth0 is not shown use the GUI network configurator or edit your ifcfg-eth0 file mine is given below:
$ /etc/sysconfig/network-scripts/ifcfg-eth0
# this is my manually configured ifcfg-eth0 file
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.1.105
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
MTU=1400
USERCTL=no
PEERDNS=no
GATEWAY=192.168.1.2
TYPE=Ethernet

To activate the card use:
/etc/sysconfig/network-scripts/ifup ifcfg-eth0

You may have to restart the network. You can do this by issuing the command
$ /etc/init.d/network restart

Without knowing your output of the ifconfig -a command I am unsure of what else to tell you. First you have to make sure your card is working then configure the networking.

tiger3 12-02-2003 06:43 AM

Also, is this a laptop? If so the PCMCIA may need configuring......

qwijibow 12-02-2003 12:20 PM

i have now got the network card working 100%

i connected my pc to an old pc i have hiden away,
and got quake 2 player working... (the network card itself works fine)

i have set the network cards IP to static 192.168.69.69
and its netmask to 255.255.255.0
and defualt gateway to 127.0.0.1

HOWEVER....
i cannot use it to get on the internet.

im using redhat-config-network
and the internet connection wizzard.

but when ive set up everyhting to how it should be, i hit activate ppp0
and it just sits there activation, and eventually fails.

the PC is a normal desktop PC.

ALSO...
i tried connecting the Broadband up to the PC via the USB cable.
redhat detected it, and put the cable modem in my USB section of Controll Center.
and called it eth1
when using the wizzard to setup the internet connection i set broadband,
and set device eth1 with all the unser names ect ect.. but still attempting to activate has the same result.

tiger3 12-03-2003 05:27 AM

Have you to set your IP address to be in the same network as the modem or have it give you an IP via dhcp.
Check with your service provider about what your IP address can be with the modem.
192.168.69.69 255.255.255.0
will be in a different network if your modem only supports
192.168.1.0 255.255.255.0

The net mask tells which octets to match for your network. These are different networks with that mask 255.255.255.0
192.168.69.0
192.168.1.0

Try changing your IP to 192.168.1.1 and see if it works. Without knowing what your service provider's modem is set to operate at it is hard to say what you can set it to. Your service provider or modem documentation should give you some info on what IP to use.

tiger3 12-03-2003 05:45 AM

Have you to set your IP address to be in the same network as the modem or have it give you an IP via dhcp.
Check with your service provider about what your IP address can be with the modem.
192.168.69.69 255.255.255.0
will be in a different network if your modem only supports
192.168.1.0 255.255.255.0

The net mask tells which octets to match for your network. These are different networks with that mask 255.255.255.0
192.168.69.0
192.168.1.0

Try changing your IP to 192.168.1.1 and see if it works. Without knowing what your service provider's modem is set to operate at it is hard to say what you can set it to. Your service provider or modem documentation should give you some info on what IP to use.

qwijibow 12-04-2003 04:11 AM

thankyou, i will try that.....
i can only access the internet from UNIVERSITY....
so to try out what you surgest i need to go home... then cant reply till im nexi in UNI.
so i appologise for my slow reply's.

thantyou for the help so far.

i tried to use the dhcp, but this doesnt work, when i try to activate the network device ppp it fails with no error message, which im thinking is due to me incorect IP address / netmask.

ill have anouther try and come back with either a thankyou, or more qusttions.. hopefully the former :)

ThanX again....


All times are GMT -5. The time now is 04:14 AM.