LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2003, 06:04 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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

Last edited by qwijibow; 12-02-2003 at 06:11 AM.
 
Old 12-02-2003, 06:40 AM   #2
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
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.
 
Old 12-02-2003, 06:43 AM   #3
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
Also, is this a laptop? If so the PCMCIA may need configuring......
 
Old 12-02-2003, 12:20 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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.
 
Old 12-03-2003, 05:27 AM   #5
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
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.
 
Old 12-03-2003, 05:45 AM   #6
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
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.
 
Old 12-04-2003, 04:11 AM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
super newbie needs help ! kinghimself Linux - Software 5 11-09-2003 10:28 AM
Super-new newbie, need direction. ActionPlant Linux - Newbie 8 10-28-2003 02:54 PM
super newbie and mandrake8.1 Arny rimmer Linux - Newbie 4 10-27-2003 11:31 PM
super newbie a45b22chp Linux - Newbie 11 05-04-2003 04:46 PM
super newbie question... oulck Linux - Newbie 27 09-19-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration