Hello.
In addition to my 100/100Mbit ISP connection I have an additional 60/20Mbit connection for the next three months. I don't really have any need for that second connection but think I should try to use the bandwidth somehow. Perhaps to Tor.
Anyhow. As a router I have a FreeBSD machine with six interfaces; re0, re1, ste0, ste1, ste2 and ste3.
Primary internet connection is on ste0 and performs NAT with pf to re0, re1 and ste1. All working very good.
Now I want to connect the secondary internet connection to ste2 and pf should perform NAT from it to ste3 where a computer will use the bandwidth somehow. I want this solution in order to be able to connect to this computer form within my ordinary network.
To me this seemed like a quite simple task, but ip are assigned with DHCP from both ISPs and that's where things go wrong:
As you can see BSD takes the ip from ste0 and duplicates it on ste2 instead of asking for a real ip from that ISP.
Why is this, and how can I solve this?
(Had a similar problem the other month when I wanted FBSD to ask for many DHCP-adresses on one interface, the ISP gives out five. I had to give that up, it seemed unsolvable.)
Thank you in advance.
In addition to my 100/100Mbit ISP connection I have an additional 60/20Mbit connection for the next three months. I don't really have any need for that second connection but think I should try to use the bandwidth somehow. Perhaps to Tor.
Anyhow. As a router I have a FreeBSD machine with six interfaces; re0, re1, ste0, ste1, ste2 and ste3.
Primary internet connection is on ste0 and performs NAT with pf to re0, re1 and ste1. All working very good.
Now I want to connect the secondary internet connection to ste2 and pf should perform NAT from it to ste3 where a computer will use the bandwidth somehow. I want this solution in order to be able to connect to this computer form within my ordinary network.
To me this seemed like a quite simple task, but ip are assigned with DHCP from both ISPs and that's where things go wrong:
Code:
fbsd# ifconfig ste2 dhcp
fbsd# ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether <cut>
inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
ste0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether <cut>
inet 78.11.11.11 netmask 0xffffff00 broadcast 78.11.11.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
ste1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether <cut>
inet 10.254.239.1 netmask 0xffffff00 broadcast 10.254.239.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
ste2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether <cut>
inet 78.11.11.11 netmask 0xff000000 broadcast 78.255.255.255
media: Ethernet autoselect (none)
status: no carrier
ste3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether <cut>
media: Ethernet autoselect (none)
status: no carrier
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether <cut>
inet 172.16.1.1 netmask 0xffffff00 broadcast 172.16.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fbsd#
As you can see BSD takes the ip from ste0 and duplicates it on ste2 instead of asking for a real ip from that ISP.
Why is this, and how can I solve this?
(Had a similar problem the other month when I wanted FBSD to ask for many DHCP-adresses on one interface, the ISP gives out five. I had to give that up, it seemed unsolvable.)
Thank you in advance.