Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Jesse Gordon" <jesseg@nikola.com>
To: netfilter@lists.netfilter.org
Cc: martinh@ix.netcom.com
Subject: Re: Linux box to D-Link router/bridge/access connection question
Date: Thu, 25 May 2006 11:05:41 -0700	[thread overview]
Message-ID: <00d201c68025$d5e52f70$5e00800a@printserver> (raw)
In-Reply-To: 4385672.1148572853538.JavaMail.root@elwamui-lapwing.atl.sa.earthlink.net

> Two questions:
> 1) How can I get my linux boxes to see and communicate properly with my 
> D-Link router?

D-Link's usually have a netmask of 255.255.255.0 -- and an IP of 
192.168.0.1, and since your linux boxes are 192.168.1.x, they are outside of 
the netmask range and the dlink ignores them.

Set the LAN netmask on the dlink to 255.255.0.0, or change it's IP to 
192.168.1.1, or change your linux boxes to 192.168.0.x..

Also, the dlinks default to have a DHCP server running on them -- so you 
could set your linux boxes to use DHCP to autoconfigure an IP, but then you 
wouldn't always know what IP they would be. (They would probably start at 
around 192.168.0.100 or so.)(To try dhcp, just type dhcpcd and press enter 
and wait. dhcpcd stands for "Dynamic Host Configuration Protocol Client 
Daemon. dhcpcd requests to be assigned an IP, netmask, default gateway, and 
DNS from the dlink.)

> 2) My linux boxes were using a dialup modem serial port to connect to the 
> Internet. How can I change my connection from using the dialup modem to 
> now go through the router to access the high speed connection?

After changing the IP or netmask as above, just set your default route to be 
192.168.0.1 (or whatever you set the LAN ip to on the dlink.)

I don't know what distro you use, so I don't know which network 
configuration utility you would use, but to test it, you could type these on 
one of the linux boxes:

ifconfig eth0 192.168.0.2 netmask 255.255.0.0
route add default gw 192.168.0.1

Of course you might type route -n (then press the ENTER key) to make sure 
there isn't already a default route.

You'll also need to set up a DNS server IP. You can use whatever network 
configuration tool you have or like, or you may be able to just edit 
/etc/resolv.conf and add the line:
nameserver 192.168.0.1

before any other 'nameserver' lines.

Hope this helps.

-Jesse



----- Original Message ----- 
From: <martinh@ix.netcom.com>
To: <netfilter@lists.netfilter.org>
Cc: <martinh@ix.netcom.com>
Sent: Thursday, May 25, 2006 9:00 AM
Subject: Linux box to D-Link router/bridge/access connection question


>I just got a D-Link wireless router connected to high speed Internet access 
>via a cable modem.
>
> I have a Windoze XP laptop with wireless network card that communicates 
> properly with the wireless router and I can make a high speed Internet 
> connection.
>
> My linux box1 is connected into port two of the router.
> My linux box2 is connected to port 3.
> My two linux boxes can see each other connected into the ports of the 
> wireless router.
>
> But I can not get my linux boxes to see the D-Link router!
>
> D-Link address is 192.168.0.1
>
> My linux boxes are 192.168.1.2 and 192.168.1.50
>
> Two questions:
> 1) How can I get my linux boxes to see and communicate properly with my 
> D-Link router?
>
> 2) My linux boxes were using a dialup modem serial port to connect to the 
> Internet. How can I change my connection from using the dialup modem to 
> now go through the router to access the high speed connection?
>
> Thank you for you help.
> -Martin
>
>
>
>
> 




  reply	other threads:[~2006-05-25 18:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 16:00 Linux box to D-Link router/bridge/access connection question martinh
2006-05-25 18:05 ` Jesse Gordon [this message]
2006-05-26  2:45   ` Martin
2006-05-26  2:56     ` Jesse Gordon
  -- strict thread matches above, loose matches on Subject: below --
2006-05-26  3:14 martinh
2006-05-26  3:36 ` Jesse Gordon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00d201c68025$d5e52f70$5e00800a@printserver' \
    --to=jesseg@nikola.com \
    --cc=martinh@ix.netcom.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox