LinuxQuestions.org
Help answer threads with 0 replies.
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 09-04-2001, 08:16 AM   #1
Hano
Member
 
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
cant connect


I have an internet connection through a cisco 677 modem-to-WAN connection over the phone-line wide-bandwidth. Actually i can enjoy this connection only through my windows98 boot. I have a realtek 8139 ethernet card connected to the modem.
When i load the module for the ethernet card, seemingly it loads well, ...
>modprobe 8139 alias eth0
>lsmod
rtl8139 <unused>

then i do
>netstat -r
and i get that under gateway i get an (*)... no gateway detected?

as far as i know, what i have to do is more or less this (please if i'm wrong just kick the hell out of me and make me believe)

>/sbin/ifconfig eth0 (my IP addr) broadcast ( Bcast ) netmask (mask)
>/sbin/route add -net (network?) netmask (netmask) eth0
>/sbin/route add default gw (gateway?) netmask 0.0.0.0 metric 1

but then, network and gateway are not obvious to me, please somebody enlight me!

Last edited by Hano; 09-04-2001 at 08:25 AM.
 
Old 09-04-2001, 09:21 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I usually just do this


example:

[root@alpha /]# ifconfig eth0 10.0.0.2 netmask 255.255.255.0

and

[root@alpha /]# route add default gw 10.0.0.1

linux will figure the rest out for you and add the route for your interface.

the result is this
[root@alpha /]# ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:149634 errors:0 dropped:0 overruns:0 frame:0
TX packets:179902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0xdc00

and

[root@alpha /]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0



However to answer the question....................


windows will caugh up the info you need

C:\WINDOWS>ipconfig



Windows IP Configuration



0 Ethernet adapter :



IP Address. . . . . . . . . : 10.0.0.2

Subnet Mask . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . : 10.0.0.1


well ok I lied this does not say anything about network...


but if you look at the ip and the netmask you can figure it out.


the 255 means use the number in that location of the ip because it is the network the 0 in the netmask means use a number over 0 ... the broadcast would be ending in 255

10.0.0.0 is the network here. broadcast 10.0.0.255


if you get something like ip 192.168.0.129 mask 255.255.255.128

then the network would be 192.168.0.128 etc...


most networks will end with 0 unless the are subnetted.



Don't forget about DNS unless you want to memorize a lot of ip addresses.

[root@alpha /]# cat /etc/resolv.conf
domain myserver.xyz.home.com
nameserver 32.47.124.34
nameserver 32.47.124.35
search myserver.xyz.home.com





Last edited by DavidPhillips; 09-04-2001 at 09:48 AM.
 
  


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
Oops!!! bigoli MEPIS 1 06-12-2005 04:36 PM
Oops q64 Linux - Newbie 6 03-24-2004 08:35 PM
Oops! I think I did something I shouldn't have trumpetgirl Linux - Hardware 1 05-13-2003 02:21 PM
oops! nerdboy Linux - Networking 1 09-13-2002 03:29 AM
oops!!!! help_me Linux - Newbie 12 07-12-2001 10:49 AM

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

All times are GMT -5. The time now is 03:40 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