|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Quote:
Yes, but I use it as a relay agent. Quote:
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 |
|
#17
|
|||
|
|||
|
> 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. |
|
#18
|
|||
|
|||
|
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. |
|
#19
|
|||
|
|||
|
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. |
|
#20
|
|||
|
|||
|
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 |
|
#21
|
|||
|
|||
|
Quote:
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. |
|
#22
|
|||
|
|||
|
So you say that the problem is not on the freebsd box and I have to set a route
on the adsl modem itself? |
|
#23
|
|||
|
|||
|
Quote:
yes. |
|
#24
|
|||
|
|||
|
O.K.
Thanks very much for your time and for helping me. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Router |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|