From: Grant Likely <glikely@gmail.com>
To: Atit_Shah <Atit_Shah@satyam.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Network Setup - HOW TO
Date: Mon, 9 May 2005 00:36:38 -0600 [thread overview]
Message-ID: <528646bc05050823366a4cf9e6@mail.gmail.com> (raw)
In-Reply-To: <D8595042F3765A4285B848A78A2C2ED102779F@bsdmsg002.corp.satyam.ad>
On 5/8/05, Atit_Shah <Atit_Shah@satyam.com> wrote:
> My company uses the 172.19.x.x IP addresses, I want a PC with
> 192.168.x.x IP address to access the company network via a router. I
> have a router running Linux and having 2 Ethernet ports. I configured
> the systems in the following 2 ways:
So, two subnets:
Eth0 on subnet 192.168.0.0/255.255.0.0
Eth1 on subnet 172.19.0.0/255.255.0.0
>=20
> 1. Eth0 (LAN port) - 172.19.56.218
> Eth1 (WAN port) - 172.19.56.219
> Single System - 192.168.100.10 - IP Address
> 172.19.56.218 - Gateway
> 172.19.56.218 - DNS
This is wrong. IP address for Eth0 must be on the 192.168.0.0/16 subnet
>=20
> 2. Eth0 (LAN port) - 192.168.100.20
> Eth1 (WAN port) - 172.19.56.219
> Single System - 192.168.100.10 - IP Address
> 192.168.100.20 - Gateway
> 192.168.100.20 - DNS
This is correct, but the DNS server does not have to be your router.
>=20
> But I am not able to ping from the router to my single system in either
> way.
> How should I configure router to make this possible for the 2 networks
> to communicate?
Is you netmask set right? Does /sbin/route show sane IP routes? What
do you see on the wire? (Use Ethereal on a third computer). If you
cannot ping then you've got a fundamental flaw in your configurations.
Get this working before worrying about DHCP or routing.
>=20
> The second question is how to run DHCP on my router so it can receive a
> dynamic IP and assign dynamic IP when I power my router?
You need to run both dhcpd and dhcpcd. dhcpd to assign IP to your
client. dhcpcd to get an IP from the network.
It sounds like you need to brush up on your IP networking knowledge w/
linux. Go look at the howtos on www.tldp.org. Specifically on
networking and DHCP. You should get this stuff working on a regular
PC w/ 2 network cards running linux first before trying to get it
going on your embedded board.
Also, as I asked before, please include relevant output logs with your
posts and I strongly recommend sniffing the Ethernet traffic with a
tool like Ethereal.
g.
next prev parent reply other threads:[~2005-05-09 6:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 5:46 Network Setup - HOW TO Atit_Shah
2005-05-09 6:36 ` Grant Likely [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-12 6:24 Atit_Shah
2005-05-12 15:48 ` Steve Witt
2005-05-10 10:38 Atit_Shah
2005-05-05 6:24 Atit_Shah
2005-05-06 15:29 ` Grant Likely
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=528646bc05050823366a4cf9e6@mail.gmail.com \
--to=glikely@gmail.com \
--cc=Atit_Shah@satyam.com \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).