2 WAN Connections Using Bridge Mode Setup
-
I'm currently having problems configuring the OPT1 interface to accept a static IP from my Cable provider using Bridge Mode. My ISP assigns address's in 255.255.252.0 or /22 blocks. When I attempt to enter my static IP along with Gateway and save out the changes I receive an error saying this is 'An Invalid Gateway'
In the course of troubleshooting this error I tried the following combintation of IP/Gateways successfully:
192.168.20.254/192.168.20.1 respectivley. This of course is a /24.Why does OPT1 interface not accept static IP's/Gateways on a /22 blocks?
-
Can you provide the last two octets of the IP and the gateway? Perhaps the gateway lies outside of the subnet? ie- your ip is at x.x.111.20 gateway is at x.x.112.1
-
Thanks for the reply. I will provide this information when I get home, switching the OPT 1 interface back to DHCP killed the WAN interface which was allowing me access from work.
Stay Tuned
-
Here is the IP and Subnet mask:
IP: XXX.XXX.79.187 /22
Gateway: XXX.XXX.76.1 -
AS dotdash said, your gateway is not in your subnet.
The /22 just refers to the IP addresses assigned to you. You need to specify a subnet that includes your IP addresses AND the gateway.
A /16 would work
-
IP: XXX.XXX.79.187 /22
Gateway: XXX.XXX.76.1Address: 192.168.79.187 11000000.10101000.010011 11.10111011 Netmask: 255.255.252.0 = 22 11111111.11111111.111111 00.00000000 Wildcard: 0.0.3.255 00000000.00000000.000000 11.11111111 => Network: 192.168.76.0/22 11000000.10101000.010011 00.00000000 (Class C) Broadcast: 192.168.79.255 11000000.10101000.010011 11.11111111 HostMin: 192.168.76.1 11000000.10101000.010011 00.00000001 HostMax: 192.168.79.254 11000000.10101000.010011 11.11111110 Hosts/Net: 1022
actually x.x.76.1/22 is in the same subnet as x.x.79.187/22
could it be that you missclicked? -
Unfortunatley I can reproduce the error, setting a static addres on the OPT1 interface seems to only like /24's. I haven't really explored too much further as I decided to use my 2 WAN connections independently rather than load balance them. Under this scenario both the WAN and OPT1 interfaces can use DHCP eliminating the above problem.
Thanks for the reply guys but consider this problem, if not solved, then at lease circumvented.
Cheers.
-
oops, sorry for the last post. didn't bother to check the actual mask. :-[
I did put in ip 192.168.79.187/22 and gw 192.168.76.1 for my OPT2 (OPT 1 is being used) and it is accepted fine on my machine. Maybe you have typo somewhere? If you have a space in the ip address field, that will also get the address rejected.
I am using pfSense 1.2RC2