Operating Systems > Linux and UNIX

Help getting Linux connected to the net!

<< < (2/4) > >>

Neuro7:
Thanks for your help Centurian. I still am unable to get on the net with my Linux box. I am not sure what I am doing wrong. I checked and verified that I have the proper driver loaded for my ethernet card and Linux is seeing it no problem. Could you walk me through how to connect it to the net going straight through my cable modem? I think I am getting something in the configuration wrong. Just for info, on a windows box you can open the start window, then RUN and type in winipcfg and it will give you the DNS server address and IP address and Gateway info. I also have the setup info from my isp for the DNS servers. Any help is greatly appreciated.
Thanks,
Neuro7

voidmain:

quote:Originally posted by Neuro7:
Thanks for your help Centurian. I still am unable to get on the net with my Linux box. I am not sure what I am doing wrong. I checked and verified that I have the proper driver loaded for my ethernet card and Linux is seeing it no problem. Could you walk me through how to connect it to the net going straight through my cable modem? I think I am getting something in the configuration wrong. Just for info, on a windows box you can open the start window, then RUN and type in winipcfg and it will give you the DNS server address and IP address and Gateway info. I also have the setup info from my isp for the DNS servers. Any help is greatly appreciated.
Thanks,
Neuro7
--- End quote ---


Does your cable modem support standard DHCP or do you have one of those PPOE type of Cable connections?  If it is standard DHCP you should be able to just configure your ethernet interface for DHCP and it should pick up the appropriate addresses.  If you are using a static IP address make sure you also set the proper gateway address (default router).

Once you do this could you post the out put from the "/sbin/ifconfig -a" command?  And from a "netstat -rn" command?  And send a copy of what is in your /etc/resolv.conf file?

Also, if you could temporarily hook up your windows machine and run the "winipcfg /all" command (assuming you are on Win9x, if not use the "ipconfig /all" command under NT/2k).  Post all the IP information from these commands and I think we can figure out where you are going wrong.

Neuro7:
VoidMain,
Thanks for your response and your help, I am very busy right now and haven't had a chance to try out your suggestions. I am hopeing that over the weekend I can try out your suggestions and get my Linux box on the net. I am really excited to switch over to Linux and getting it on the net is very inportant to me. I really appreciate your help and the help of anyone else. I have read some of your posts helping others and am glad that you are here to help.

Thanks again,
Neuro7

Neuro7:
VoidMain,

Here is the information that you asked me to post:
output from /sbin/ifconfig -a:
eth0   Link encap:Ethernet HWaddr:00:04:5A:53:A3:AF inet addr:24.159.189.118 Bcast:24.159.189.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:496 errors:0 dropped:0 overruns:0 frame:0
TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:34772 (33.9Kb) TX bytes:12564 (12.2Kb)
Interrupt:9 Base address:0xfc00

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:147 errors:0 dropped:0 overruns:0 frame:0
TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14032 (13.7Kb) TX bytes:14302 (13.7Kb)

When I try running the /etc/resolv.conf I get permission denied, I tried while logged in as root.

Here is the output of the netstat -rn on Windows box:
Route table
----------------------------------------------------------------------------------------------------
Interface List
0x1.....MS TCP Loopback interface
0x2.....44 45 53 54 00 00 ......PPP Adapter.
0x3.....00 03 6d 1c bc 1e ......Network Everywhere Fast Ethernet Adadpter NDIS5 Driver
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
Active Routes:
Network Destination  Netmask
0.0.0.0              0.0.0.0
24.159.189.0         255.255.255.0
24.159.189.118       255.255.255.255
24.255.255.255       255.255.255.255
127.0.0.1            255.0.0.0
224.0.0.0            224.0.0.0
255.255.255.255      255.255.255.255
Gateway         Interface        Metric
24.159.189.1    24.159.189.118        1
24.159.189.118  24.159.189.118        1
127.0.0.1       127.0.0.1             1
24.159.189.118  24.159.189.118        1
127.0.0.1       127.0.0.1             1
24.159.189.118  24.159.189.118        1
24.159.189.118  2                     1
Default Gateway:24.159.189.1
----------------------------------------------------------------------------------------------------
Persistent Routes:
  None

Active Connections

Proto Local Address        Foreign Address
TCP   24.159.189.118:1036  205.188.7.148:5190
State
ESTABLISHED

netstat -rn on Linux box:
Kernal IP routing table
Destination   Gateway       Genmask
24.159.189.0  0.0.0.0       255.255.255.0
127.0.0.0     0.0.0.0       255.0.0.0
0.0.0.0       24.159.189.1  0.0.0.0
Flags         MSS Window    irtt Iface
U              40 0            0 eth0
U              40 0            0 lo
UG             40 0            0 eth0

winipcfg /all:
Host Information
Host Name: TAJELA.chartertn.net
DNS Servers: 24.159.191.6
Node Type: Broadcast
NetBIOS Scope Id:
IP Routing Enabled:    WINS Proxy Enabled:
NetBIOS Resolution Uses DNS:
Ethernet Adapter Information
Network Everywhere Fast Ethernet
Adapter Address: 00-03-6D-1C-BC-1E
IP Address: 24.159.189.118
Subnet Mask: 255.255.255.0
Default Gateway: 24.159.189.1
DHCP Server: 24.159.191.5
Primary WINS Server:
Secondary WINS Server:
Lease Obtained: 01 13 02 2:34:48 PM
Lease Expires: 01 13 02 10:34:48 PM

Thanks,
Neuro7

voidmain:

quote:Originally posted by Neuro7:
VoidMain,
When I try running the /etc/resolv.conf I get permission denied, I tried while logged in as root.

--- End quote ---


The routing tables look good and I would be willing to bet you can "ping" outside machines, however I bet your DNS is not configured properly.  "/etc/resolv.conf" is not a command but a file where DNS is configured. RedHat will automatically set this file up when using DHCP, but for some reason it appears your Mandrake distro may not have.  As root, open that file in your favorite editor (kedit, gedit, vi, etc). For your configuration it should look like this:


--- Code: ---
--- End code ---

or:


--- Code: ---
--- End code ---

You should also be able to put these settings in using Mandrakes graphical network configuration tool (whatever that may be) but it will do the same thing you are doing by performing my procedures above. You do not need to reboot to make the changes active (you really don't need to reboot for anything except installing a new kernel).

Even without setting up your DNS you should be able to ping IP addresses.

Example, try to ping your gateway:
ping 24.159.189.1

You should get a reply, if you do not we still have work to do.

Try and ping google by:
ping 216.239.33.101

If you do have basic networking working (you can ping by address) but you do not have DNS working (can not ping by name) there is one more file we can look at that may be configured wrong "/etc/nsswitch.conf" but I think you should have it working after setting up resolv.conf.  Let me know.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version