View previous topic :: View next topic |
Author |
Message |
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 1:51 am Post subject: Manual network configure? |
|
|
My network doesnt autodetect, my ethernet wont even detect without the 2.6 kernel. When I run net-setup DHCP wont configure correctly(it wotn even show up in /sbin/ifconfig) I can manually configure the IP, broadcast and subnet mask, but the gateway and nameserver confuse me. How do I know what I am supposed to have for their values? Thanks |
|
Back to top |
|
|
Dracarys n00b
Joined: 17 Jul 2004 Posts: 15 Location: Here
|
Posted: Thu Oct 21, 2004 2:17 am Post subject: |
|
|
afaik, gateway is usually 255.255.255.0. Nameserver is (I think) the same IP that serves dhcp. _________________ -Dracarys
Adopt an unanswered post today! |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 2:23 am Post subject: |
|
|
No. 255.255.255.0 is a certain class's subnet mask.
Your gateway is going to be your router's IP. My IP is 192.168.1.101 and my router's IP is 192.168.1.1 -which is my gateway.
If you've got any kind of home network set up with a router, the router's IP is going to be the gateway IP. Dunno about name servers, though. I don't remember where to get them in the router config. Just call your ISP and ask what DNS servers to use. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 2:23 am Post subject: |
|
|
255.255.255.0 is my subnet mask, is it also supposed to be the gateway? also where do I find out what the DHCP ip is so I can use it as my nameserver? |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 2:25 am Post subject: |
|
|
Your DHCP IP address is going to be assigned from the router. Well, I'm assuming you have a router. In any case, the name server can be issued by IP, but it's got to be a WAN IP, not a LAN IP. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 2:28 am Post subject: |
|
|
GerminVermin wrote: | Your DHCP IP address is going to be assigned from the router. Well, I'm assuming you have a router. In any case, the name server can be issued by IP, but it's got to be a WAN IP, not a LAN IP. |
Ok atleast im getting somewhere now IS their a way to get this address without callign my ISP. Even if you dotn know exactly how can you tell me what you know so I can ask around on how?
thanks man |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 2:29 am Post subject: |
|
|
Do you have a working computer to connect to the router? If so, boot up a windows install or something, check the ipconfig and write down the DNS servers (name servers) then just use those in your static config. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 2:31 am Post subject: |
|
|
If you're not getting a connection with DHCP, I hightly doubt static IP settings will get you connected, unless you don't have dhcpcd installed. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 2:43 am Post subject: |
|
|
Ok im on a working windows install, how exactly do I find the nameserver? I know my ip but I dotn know my WAN ip, where would I find that out? |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 2:48 am Post subject: |
|
|
WAN = Wide Area Network (internet)
LAN = Local Area Network (home network)
Windows98: Start > Run > winipcfg (click the button to show you more information)
windows2000/XP: Start > Run > cmd > ipconfig -all
That should show you your IP configuration.
If you're connected to the router, the router gets the WAN IP and then assigns a LAN IP to all the computers connected to it. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 3:03 am Post subject: |
|
|
2 more simple questions(thanks youve been extremly helpful )
1) When my lease on the ip expires do I have to reconfigure it to the new ip?
2) how do I use ping(on say yahoo) to make sure the conenction is working both to and from my computer? |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 3:19 am Post subject: |
|
|
1) With a dynamic setup, your computer will automatically renew the lease when your lease expires. IP leases actually have a half-life, if you will. If you've got a 4 day lease on an IP, your computer will wait until the lease is half over and then go "hey can I keep using this IP?" and the DHCP server will confirm or deny the request, updating your lease date. If you have a six month lease, the computer asks for an update on the IP at three months, etc. In any case, no you do not need to reconfigure anything whether you're running a static or dynamic IP configuration.
2) What system are you trying to ping things on? If it's a windows environment, go into the command prompt and type "ping yahoo.com". If you're in a linux environment, just type "ping -c 4 yahoo.com". Note the space between the "-c" and the "4". The -c arguement basically tells the ping program that you only want to ping a certain number of times. The number 4 tells the ping program that number. :p
If you run "ping yahoo.com" with no arguements, it will ping... and ping... and ping... You'll have to press Control C (the two keys) to get it to stop.
If your computer can ping anything at all, then your computer can send and receive info over the web. Pinging sends out a single packet with a timestamp on it to your destination. If that destination (yahoo.com) is configured to allow ping returns (sometimes you'll ping a server that you *know* is online but it won't reply for security reasons), that server will receive the packet, put a datestamp on it, and send it back. Then your computer datestamps the packet *again* and prints a report of the time it took to go round-trip.
So when you see something like this:
Quote: | C:\Documents and Settings\GerminVermin>ping yahoo.com
Pinging yahoo.com [66.94.234.13] with 32 bytes of data:
Reply from 66.94.234.13: bytes=32 time=30ms TTL=51
Reply from 66.94.234.13: bytes=32 time=30ms TTL=51
Reply from 66.94.234.13: bytes=32 time=30ms TTL=51
Reply from 66.94.234.13: bytes=32 time=31ms TTL=51
Ping statistics for 66.94.234.13:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 30ms, Maximum = 31ms, Average = 30ms
C:\Documents and Settings\GerminVermin> |
what you're seeing is the yahoo server replying to your computer's request. In this case, the time it took my computer to datestamp, send...receive, datestamp, and print (to screen) the results is ~30 milliseconds. Windows XP, by default, pings 4 times. All four packets were sent out and received successfully.
_________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 3:48 am Post subject: |
|
|
>_< ok Thanks. Im not sure exacly what im doing wrong because the host isnt found when i ping yahoo, I must have incorrectly configured something. I separate the nameservers by a comma right? I set up my lan IP my subnet my boradcast my gateway and my nameserver under net-setup. I there another step i forgot? |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 5:01 am Post subject: |
|
|
Well, I told you earlier that if you don't get a DHCP connection, setting static won't help either. It's probably going to be a driver issue with your NIC. Boot from the LiveCD, run "net-setup eth0" (yes that's a zero) and set for DHCP.
ping -c 3 yahoo.com
come back and tell me if it worked or not.
You can also catch me on aim/yahoo/msn/icq if you want. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Shopro l33t
Joined: 12 May 2004 Posts: 678 Location: Dayton, OH, USA
|
Posted: Thu Oct 21, 2004 5:27 am Post subject: |
|
|
Btw, is your network card found at all? _________________ Just because I have nothing to say is no reason why you shouldn't listen. |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 5:31 am Post subject: |
|
|
Shopro wrote: | Btw, is your network card found at all? |
From the OP:
"my ethernet wont even detect without the 2.6 kernel"
Gotta read the thread, bud. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Shopro l33t
Joined: 12 May 2004 Posts: 678 Location: Dayton, OH, USA
|
Posted: Thu Oct 21, 2004 5:34 am Post subject: |
|
|
You always have to start from the bottom _________________ Just because I have nothing to say is no reason why you shouldn't listen. |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 5:36 am Post subject: |
|
|
_________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
Diamond Jester n00b
Joined: 01 Oct 2004 Posts: 24
|
Posted: Thu Oct 21, 2004 6:19 am Post subject: |
|
|
Thanks GV, I hit you up on ICQ give me a holler when your available Im new to Linux so tis is difficult for me, but it forces me to learn alot. |
|
Back to top |
|
|
DislexiK n00b
Joined: 09 Nov 2003 Posts: 72 Location: /home/dislexik
|
Posted: Thu Oct 21, 2004 6:44 am Post subject: |
|
|
Dracarys wrote: | afaik, gateway is usually 255.255.255.0. Nameserver is (I think) the same IP that serves dhcp. |
AHHHH don't say that
Things to remember:
IP: Is a method of saying how to get to your host/computer
Subnetmask: Used for defining the network/subnet you IP is attached to for logically segmenting a network
Gateway: This is the IP Address that your system needs to know in order to send packets OUT OF your personal network. The understanding of gateway (Or at least one you should try understand) is when your system doesn't know where to send a packet, it will send it to the default gateway, which will deal with it, usually router, the router would usually then send it out of your network, - more too it than that but thats basic.
DislexiK _________________ DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users |
|
Back to top |
|
|
GerminVermin n00b
Joined: 21 Oct 2004 Posts: 54
|
Posted: Thu Oct 21, 2004 2:17 pm Post subject: |
|
|
I'm in Oregon, USA, so don't be surprised if catching me isn't the easiest thing to do. However, I'm usually logged in. I got your message this morning but you had already logged off. _________________ I tried snorting coke once. The icecubes got stuck up my nose. |
|
Back to top |
|
|
AmosMutke Apprentice
Joined: 24 Dec 2003 Posts: 235 Location: Akita, Japan.
|
Posted: Fri Jan 07, 2005 7:59 am Post subject: |
|
|
I'm having a similar problem.
I want to connect my linux laptop to a windows network to print on a shared printer using cups. This howto says to install samba, but I don't think it's necessary. is it? If I'm wrong, please correct me and skip reading the rest.
First of all, my network card drivers work fine... Otherwise I couldn't be typing this... I use dhcp at home with no troubles.
/etc/conf.d/net
Code: | ifconfig_eth0=("dhcp") |
everything else is commented out... as I said.. this works fine at home.
The network I'm connecting to uses both static IP and has a few addresses available using DHCP.
trying to connect using dhcp doesn't work. eth0 will come up, but it doesn't find an IP address.
So I decide to try the static IP address. (I was given one to use by the network admin)
/etc/conf.d/net
Code: | ifconfig_eth0=("192.168.100.40 broadcast 192.168.100.255 netmask 255.255.255.0") |
Everything else is commented out.
and ifconfig provides
Code: | blah #>ifconfig eth0
eth0 Link encap:Ethernet HWaddr 0F:0F:0F:0F:0F:0F
inet addr:192.168.100.40 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3336 (3.2 Kb) TX bytes:256 (256.0 b)
Interrupt:11
|
note: I changed my hardware address for obvious reasons.
Trying to ping anything, even IP addresses of computers on the network, I get host unreachable.
The computers all connect to a router and the printer I want to print to is shared by a computer on this network.
As an additional note, I currently live in Japan and the network I'm connecting to runs a Japanese version of M$ Windows. I know it shouldn't matter, esp since I don't have problems at home, but thought I would include that just in case.
If you need more information, just ask.
thanx |
|
Back to top |
|
|
AmosMutke Apprentice
Joined: 24 Dec 2003 Posts: 235 Location: Akita, Japan.
|
Posted: Mon Jan 10, 2005 3:54 am Post subject: |
|
|
*bump*
OK.. I'll try begging..
***p-p-p-p-pleeeeeease!!!!!
Surely someone must have a suggestion... (and your name doesn't have to be Sherly either... anyone is fine.. ) |
|
Back to top |
|
|
Chaoslab n00b
Joined: 18 Apr 2003 Posts: 41 Location: Wellington, New Zealand
|
Posted: Mon Jan 10, 2005 7:53 am Post subject: Router setup |
|
|
I hope this is of some help
I recently purchased a new router and it assigns an IP automatically to any machines that connect to it.
So heres what I had to do to get my gentoo box up and running on it.
first edit /etc/conf.d/net
Code: | # /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.1.23 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="192.168.1.126"
# For setting the default gateway
#
gateway="eth0/192.168.1.126"
|
check that things are loaded correctly
rc-update add net.eth0 default
add the routers ip as the default gateway
route add default gw 192.168.1.126
get assigned and IP address
dhcpcd eth0 192.168.1.126
and finally an env, profile and dependancy update
env-update
source /etc/profile
/sbin/depscan.sh _________________ Regards
Cam Mckechnie |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Mon Jan 10, 2005 8:44 am Post subject: |
|
|
here is the list of todos:
1.) card exists in lspci? -- it should
2.) card exists in ifconfig eth0? -- it should.
3.) another card exists in ifconfig eth1? -- sometimes firewire modules allow networking, and takes the eth0 place...
4.) dhcpcd exists? emerge -pv dhcpcd or look for /sbin/dhcpcd
5.) are you giving dhcpcd time? or are you killing it after 10 seconds?
6.) have you searched bugzilla for bugs involving dhcpcd and/or your card? _________________ HW problems. It's a VIA thing. |
|
Back to top |
|
|
|