linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Network Setup - HOW TO
@ 2005-05-05  6:24 Atit_Shah
  2005-05-06 15:29 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Atit_Shah @ 2005-05-05  6:24 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,

	I have a custom board designed to function as a router. It has 2
Ethernet ports. Eth1 is a WAN port and Eth0 is a LAN port. This is what
I wish to do:
1. connect the board/router to my company network=20
2. connect a normal system running windows or linux to the router
3. I should be able to ping or browse the net using the normal system
via the router through the company network.

I have connect the normal network cable (not a cross wire cable) between
the router and the company network. The router does not seem to get a
dynamic IP. Why and What should I do for it to get one?

I assigned a static IP to eth1 and pinged another system on the company
network and I do get a reply back. So my eth1 is working fine, but I
would still prefer a dynamic IP.

I connect a system to eth0 again with a normal network cable (not a
cross wire cable) but the system does not seem to get an IP assigned
even when I run the dhcp server on my router....used udhcpd command. Why
and how can I get it up?

Appreciate a response on this....

Has any one come across a tutorial which could help me solve this

Regards
Atit


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Network Setup - HOW TO
  2005-05-05  6:24 Atit_Shah
@ 2005-05-06 15:29 ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2005-05-06 15:29 UTC (permalink / raw)
  To: Atit_Shah; +Cc: linuxppc-embedded

On 5/5/05, Atit_Shah <Atit_Shah@satyam.com> wrote:
> Hi all,
>=20
>         I have a custom board designed to function as a router. It has 2
> Ethernet ports. Eth1 is a WAN port and Eth0 is a LAN port. This is what
> I wish to do:
> 1. connect the board/router to my company network
> 2. connect a normal system running windows or linux to the router
> 3. I should be able to ping or browse the net using the normal system
> via the router through the company network.
>=20
> I have connect the normal network cable (not a cross wire cable) between
> the router and the company network. The router does not seem to get a
> dynamic IP. Why and What should I do for it to get one?
Are you running a dhcp client?  Let's see the log output
>=20
> I connect a system to eth0 again with a normal network cable (not a
> cross wire cable) but the system does not seem to get an IP assigned
> even when I run the dhcp server on my router....used udhcpd command. Why
> and how can I get it up?
What do you see on the wire?  Bring up Ethereal to capture traffic.

>=20
> Appreciate a response on this....
Not enough information.  Include output logs please.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Network Setup - HOW TO
@ 2005-05-09  5:46 Atit_Shah
  2005-05-09  6:36 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Atit_Shah @ 2005-05-09  5:46 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded

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:

1. Eth0 (LAN port) - 172.19.56.218=20
   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

2. Eth0 (LAN port) - 192.168.100.20=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
	  =09
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?=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?=20

Atit


-----Original Message-----
From: Grant Likely [mailto:glikely@gmail.com]=20
Sent: Friday, May 06, 2005 8:59 PM
To: Atit_Shah
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Network Setup - HOW TO

On 5/5/05, Atit_Shah <Atit_Shah@satyam.com> wrote:
> Hi all,
>=20
>         I have a custom board designed to function as a router. It has
2
> Ethernet ports. Eth1 is a WAN port and Eth0 is a LAN port. This is
what
> I wish to do:
> 1. connect the board/router to my company network
> 2. connect a normal system running windows or linux to the router
> 3. I should be able to ping or browse the net using the normal system
> via the router through the company network.
>=20
> I have connect the normal network cable (not a cross wire cable)
between
> the router and the company network. The router does not seem to get a
> dynamic IP. Why and What should I do for it to get one?
Are you running a dhcp client?  Let's see the log output
>=20
> I connect a system to eth0 again with a normal network cable (not a
> cross wire cable) but the system does not seem to get an IP assigned
> even when I run the dhcp server on my router....used udhcpd command.
Why
> and how can I get it up?
What do you see on the wire?  Bring up Ethereal to capture traffic.

>=20
> Appreciate a response on this....
Not enough information.  Include output logs please.



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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Network Setup - HOW TO
  2005-05-09  5:46 Network Setup - HOW TO Atit_Shah
@ 2005-05-09  6:36 ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2005-05-09  6:36 UTC (permalink / raw)
  To: Atit_Shah; +Cc: linuxppc-embedded

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Network Setup - HOW TO
@ 2005-05-10 10:38 Atit_Shah
  0 siblings, 0 replies; 7+ messages in thread
From: Atit_Shah @ 2005-05-10 10:38 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 3256 bytes --]

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@gmail.com] 
Sent: Monday, May 09, 2005 12:07 PM
To: Atit_Shah
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Network Setup - HOW TO

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

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

[-- Attachment #2: ethereal --]
[-- Type: application/octet-stream, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Network Setup - HOW TO
@ 2005-05-12  6:24 Atit_Shah
  2005-05-12 15:48 ` Steve Witt
  0 siblings, 1 reply; 7+ messages in thread
From: Atit_Shah @ 2005-05-12  6:24 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,

	I have a custom router and ported the udhcp server/client on it.
My router has 2 ports eth0 - LAN and eth1 - WAN. My setup is as follows:
1.=20
To eth0: connect a stand alone windows machine

when I run the server with the command "uphcpd", it by default runs on
eth0. then on the windows machine when I say "ipconfig /renew", the
router assigns an IP address to the system - perfect.

2.
To eth0: connect to my company network.

when I run the server with the command "uphcpd", it by default runs on
eth0. then when I run the client "udhcpc" the router assigns an IP
address to eth0 obtained from the company server - perfect.

All this happens on eth0 ONLY.

I wish to configure the router as follows:
To eth0: stand alone system
To eth1: company network

The router should get an IP from my company server and assign it to eth1
and then it should assign a IP to my standalone system connected to
eth0. how do I do this?

Regards
Atit Shah


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Network Setup - HOW TO
  2005-05-12  6:24 Atit_Shah
@ 2005-05-12 15:48 ` Steve Witt
  0 siblings, 0 replies; 7+ messages in thread
From: Steve Witt @ 2005-05-12 15:48 UTC (permalink / raw)
  To: Atit_Shah; +Cc: linuxppc-embedded

On Thu, 12 May 2005, Atit_Shah wrote:

-- snip --

> The router should get an IP from my company server and assign it to eth1
> and then it should assign a IP to my standalone system connected to
> eth0. how do I do this?
>

I suspect you need to spend some time with the documentation of udhcp. You 
should be able to configure with network interface the server and client 
run on.

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

Now that I've read this disclaimer, its not clear that I am allowed (by 
your company) to answer your question. Its not clear to me whether I'm the 
intended recipient, nor whether this information you've sent is company 
private (to your company) or not.

These types of disclaimers are completely inappropriate for communications 
with a group of people discussing Open Source software and are, in fact, 
pointless. If you have company private information, then the 
responsibility to protect it is yours, not mine. I would ask that you 
remove this from subsequent emails to this list.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-05-12 16:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-09  5:46 Network Setup - HOW TO Atit_Shah
2005-05-09  6:36 ` Grant Likely
  -- 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

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