Network Setup - HOW TO

Atit_Shah Atit_Shah at satyam.com
Tue May 10 20:38:26 EST 2005


I had my router with IP address 172.19.56.218 and linux machine
172.19.60.11 connected with a normal cable. I had the system ping the
router with ethereal running.
Ethereal captured only the ARP packets, there were no ARP reply and on
the console of the system I would get "Destination Host unreachable". 
Have enclosed the ethereal capture...
Atit

-----Original Message-----
From: Grant Likely [mailto:glikely at gmail.com] 
Sent: Monday, May 09, 2005 12:07 PM
To: Atit_Shah
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: Network Setup - HOW TO

On 5/8/05, Atit_Shah <Atit_Shah at 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

> 
> 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

> 
> 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.

> 
> 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.

> 
> 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.



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethereal
Type: application/octet-stream
Size: 198 bytes
Desc: ethereal
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050510/c2fe4b7e/attachment.obj 


More information about the Linuxppc-embedded mailing list