BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old December 31st, 2004, 06:25 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
Quote:
Or is this a dual-function "modem" which can act as router but does not have to?

Yes, but I use it as a relay agent.

Quote:
How did it work when you only connected the single windows machine?

It was a pppoe link.


O.K.
Let's leave this configuration alone and try to resolve the second box
with a fresh install and with no firewall and no adsl.
This is the scenario:

Second freebsd box with two nic:
First nic IP 192.168.0.100 is connected to a switch and to the switch are connected
two windows pc (one 192.168.0.201 and 192.168.0.202).
Second nic IP 10.0.0.100 is connected to a hub and to the hub is connected a
windows pc with an IP of 10.0.0.200

The FreeBSD box can ping the two windows pc 192.168.0.201 and 192.168.0.202
The FreeBSD box can ping the windows pc 10.0.0.200
The windows pc 10.0.0.200 can't ping the two windows pc 192.168.0.201 and
192.168.0.202
And ofcourse the two windows pc 192.168.0.201 and 192.168.0.202 can't ping
the windows pc 10.0.0.200

On the FreeBSD box I have sysctl net.inet.ip.forwarding=1

Reply With Quote
  #17  
Old December 31st, 2004, 06:45 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
> Yes, but I use it as a relay agent.
I see. This was the problem that I could not understand. So you have in fact two parallel connections to the ADSL modem, one for administration and one for internet.

Stay with the setup we had before you made this post. Set the ADSL modem's IP to 192.168.100.1.

We removed the IP for fxp0 earlier, but now we need it again. Set it to 192.168.100.2.

Now?

M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #18  
Old December 31st, 2004, 06:58 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
Can I set the IP of fxp0 to 10.0.0.50 and for the adsl to 10.0.0.2
the reason that I'm asking is because the adsl modem already have 10.0.0.2
and it's almost impossible to configure the adsl modem via lynx, this is the reason
that I want to access the adsl modem via a windows pc.

Reply With Quote
  #19  
Old December 31st, 2004, 07:41 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
You can use the 10.* addresses for the modem, but then you must reconfig the windows machines to use a different one instead.

They cannot be in the same subnet, this is the only thing to look out for. Make logical subnets match physical.

M.

Reply With Quote
  #20  
Old December 31st, 2004, 07:56 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
O.K.
Now the fxp0 IP address is 10.0.0.50 and the nic is connected to the
adsl modem.
The adsl modem IP address is 10.0.0.2
The second freebsd IP addresss ramain 192.168.0.50 and it's connected via a switch to the
windows pc (192.168.0.200).

Windows pc 192.168.0.200 can ping 192.168.0.50
Windows pc 192.168.0.200 can ping 10.0.0.50
FreeBSD box 192.168.0.50 can ping windows pc 192.168.0.200
FreeBSD box 192.168.0.50 can ping adsl modem 10.0.0.2
Windows pc 192.168.0.200 CAN'T ping 10.0.0.2

Reply With Quote
  #21  
Old January 2nd, 2005, 02:14 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
Quote:
Originally Posted by murphy_young
Windows pc 192.168.0.200 can ping 192.168.0.50
Windows pc 192.168.0.200 can ping 10.0.0.50
FreeBSD box 192.168.0.50 can ping windows pc 192.168.0.200
FreeBSD box 192.168.0.50 can ping adsl modem 10.0.0.2
Windows pc 192.168.0.200 CAN'T ping 10.0.0.2

Ok, good. Now you have to set a route on the ADSL router so it knows that it can reach 192.168.0.* via the internal interface (gateway 10.0.0.50) and not on the internet.

Reply With Quote
  #22  
Old January 2nd, 2005, 09:50 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
So you say that the problem is not on the freebsd box and I have to set a route
on the adsl modem itself?

Reply With Quote
  #23  
Old January 2nd, 2005, 10:05 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
Quote:
Originally Posted by murphy_young
So you say that the problem is not on the freebsd box and I have to set a route
on the adsl modem itself?

yes.

Reply With Quote
  #24  
Old January 3rd, 2005, 10:19 AM
murphy_young murphy_young is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 296 murphy_young User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 17 m 54 sec
Reputation Power: 0
O.K.
Thanks very much for your time and for helping me.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Router


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT