Default gateway not set correctly
-
I'm trying to remotely setup a pfsense box through an Idrac and need to get the WAN working so I can use the GUI.
The issue i'm having is that the default gateway appears to be getting set incorrectly.
I configured the ipv4 address 66.X.X.227 /28 with the default gateway as 66.X.X.225 using the "Set interface(s) IP address"
but it appears using netstat -rn to be using 66.X.X.224 as the default gateway.
I have tried "route add default 66.X.X.225" but this returns the error
"route: writing to routing socket: File exists
add net default: gateway 66.X.X.225 fib 0: route already in table"Any suggestions as to why this might be happens and how to fix it, using 2.3.2-RELEASE ?
-
Any recommendations on what to do here, maybe manually configure the IP address and routes?
-
please post your routing table & gateway config
-
netstat -rn looks like this (sorry cant copy and paste it through the Idrac Console
Internet:
Destination Gateway Flags NetIf Expire
default 66.X.X.224 UGS bge0
66.X.X.224/28 link#1 U bge0
66.X.X.227 link#1 UHS lo0
127.0.0.1 link#6 UH lo0This I think shows the default gateway as 66.X.X.224 though I am definitely setting it as 66.X.X.225
If I manually add this with
ifconfig bge0 inet 66.X.X.227 netmask 255.255.255.240
route add default 66.X.X.225It then shows the correct default gateway when doing netstat -rn though i still can't route any traffic out t the internet but i suspect that's an issue at the data center.
-
Can you post the interface configuration (screenshot preferable) for WAN and the gateways screen at System->Routing->Gateways.