LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2004, 11:22 AM   #1
pppretty
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Internet help


Ok, so here's my question...I'm pretty new to linux so please bare with me. I'm curently running Debian which was installed at my friends house. We got working and on the inernet, but now when I plug it in here, It won't resolve to my ip. I've tried to run dhcpcd and I get nothing...
Is their something else I can try??


Pppretty
 
Old 10-02-2004, 11:23 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
what do you get when you run
/sbin/ifconfig
(run as root)
?
 
Old 10-02-2004, 11:32 AM   #3
pppretty
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, so here is what I get

eth0 Link encap:Ethernet HWaddr 00:06:25:18:51:6B
inet addr:10.10.8.71 Bcast:10.10.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3085 errors:0 dropped:0 overruns:0 frame:0
TX packets:523 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:199833 (195.1KiB) TX bytes:95645 (93.4KiB)

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:625 errors:0 dropped:0 overruns:0 frame:0
TX packets:625 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:83492 (81.5KiB) TX bytes:83492 (81.5KiB)
 
Old 10-02-2004, 11:36 AM   #4
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
Quote:
inet addr:10.10.8.71 Bcast:10.10.255.255 Mask:255.255.0.0
-- that's a big network to be running at home
are you on the same network to access this website? -- what OS are you using? do you know anything about your network settings? what router do you have?
 
Old 10-02-2004, 11:47 AM   #5
pppretty
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
That's the thing....that ip ain't mine....that's why I want to change it to my own and having problems
I have a linksys router...as for my network settings, my ip address is assiged by my dhcp server and the main gateway is 192.168.1.1

My main OS is windowsXP. On my other pc (which I can't get online)....debian and winXP
 
Old 10-02-2004, 12:03 PM   #6
the_tflk
Member
 
Registered: Jul 2003
Location: MA
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 16
It's easier to use static IP settings within your home network.... Linksys can be a pain in the butt. Open up a terminal and try to ping your router - if you can ping the router, (192.168.1.1) then you are all set. Open up a browser, hopefully firefox, and ctrl-l your way to 192.168.1.1 - I dont know if you have messed with the configuration in your router or if this is something you have considered but make sure you can get to the router first. Then get out on the net.
I dont know what kind of network configurations tools you have available on debian, but it would seem that you have found the correct place to look that up.
I run Fedora Core 2 - Good luck.
 
Old 10-02-2004, 12:07 PM   #7
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
[EDIT]
BTW-
Ignore the_tflk's post -- he obviously hasn't read your problem in that you can't ping 192.168.1.1 from 10.10.0.0 when your next hop needs to be 192.168.1.0, and furthermore, doesn't understand basic networking where if you can't ping an IP (such as your router), you certantly won't be able to browse to it using FireFox!
Gah!
[/EDIT]

but only the debian install is having trouble on your dual-boot (i assume)

-- do you want a static ip, or dynamic?
here's a reference for you:
http://www.debian.org/doc/manuals/re...ateway.en.html

--it's long, so i skimmed it and targeted the following for you... let me know if that gets you there...


Quote:
10.5 Configuring network interfaces using DHCP

Low-level configuration of network interfaces can be automated by means of the Dynamic Host Configuration Protocol (DHCP). Your firewall or router box or your broadband ISP may furnish IP addresses and other parameters this way.

To make this work you must install one of the following packages:

* dhcp3-client (version 3, Internet Software Consortium)
* dhcpcd (Yoichi Hariguchi and Sergei Viznyuk)
* pump (Red Hat)

pump is simple and widely used. dhcp3-client is complex but more configurable. [58]
10.6 High level network configuration in Debian

In order to make network configuration easier Debian provides a standard high level network configuration tool consisting of the ifup and ifdown programs and the /etc/network/interfaces file. [59] If you choose to use ifupdown to do your network configuration then normally you should not use low-level commands too. [60] The ifupdown program was written with the intent that it alone be used to configure and deconfigure network interfaces.

To update interface configuration do this:

# ifdown eth0
# editor /etc/network/interfaces # tweak as you wish
# ifup eth0

For more information see interfaces(5), /usr/share/doc/ifupdown/examples/network-interfaces.gz, and ifup(8).
10.6.1 Configuring an interface with a static IP address

Suppose you want to configure an Ethernet interface such that it has a fixed IP address of 192.168.0.111. This address begins with 192.168.0 so it must be on a LAN. Suppose further that 192.168.0.1 is the address of the LAN's gateway to the Internet. Edit /etc/network/interfaces so that it includes a stanza like this:

iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1

You can configure other aspects of the interface or perform other actions after the interface is brought up or before it is brought down by specifying appropriate commands on "up" and "down" lines.

iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.2 dev $IFACE
down route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.2 dev $IFACE
up echo Interface $IFACE going up | /usr/bin/logger -t ifup
down echo Interface $IFACE Going down | /usr/bin/logger -t ifdown

Alternatively, commands can be inserted into scripts in the /etc/network/if-up.d and /etc/network/if-down.d directories. Such scripts can also implement extended options. See interfaces(5) for details. For example, the resolvconf package includes scripts that allow you to add options specifying DNS information to be included in /etc/resolv.conf while the interface is up:

iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1
dns-search somedomain.org
dns-nameservers 195.238.2.21 195.238.2.22

The argument somedomain.org of the dns-search option corresponds to the argument of a search option in resolv.conf(5). The arguments 195.238.2.21 and 195.238.2.22 of the dns-nameservers option correspond to the arguments of nameserver options. Other recognized options are dns-domain and dns-sortlist. See Managing nameserver information resolvconf, Section 10.4.2.
10.6.2 Configuring an interface using DHCP

To configure an interface using DHCP edit /etc/network/interfaces so that it includes a stanza like this:

iface eth0 inet dhcp

In order for this to work you must have installed one of the DHCP clients mentioned in Configuring network interfaces using DHCP, Section 10.5.

Last edited by secesh; 10-02-2004 at 12:21 PM.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
Messed up my internet settings (NO internet connection) :( Almazick Linux - Networking 2 09-08-2004 12:05 PM
iptables. Can ping through to internet side nic but can't get to internet gonus Linux - Networking 19 07-15-2004 01:27 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM


All times are GMT -5. The time now is 08:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration