Hi All. I'm setting up a new router and troubleshooting port redirection. I picked up on an odd difference in ifconfig and couldn't find any sensible explanation online.
Here's the interface config in /etc/rc.conf:
Here's the ifconfig output:
inet 10.5.5.3 netmask 0xffffffff broadcast 10.5.5.3
inet 10.5.5.2 netmask 0xffffff00 broadcast 10.5.5.255
Why the difference? I don't want to manually specify these settings as I suspect there's something else I need to fix...
Here's the interface config in /etc/rc.conf:
Code:
ifconfig_bge0="inet 10.5.5.3 netmask 255.255.255.0"
ifconfig_bge1="inet 10.5.5.2 netmask 255.255.255.0"
defaultrouter="10.5.5.1"
netwait_enable="YES"
netwait_ip="10.5.5.1"
netwait_if="bge1"
netwait_if="bge0" // Q: I've added the second netwait_if today - found no data on whether multiple interfaces can be specified?
Here's the ifconfig output:
Code:
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 1c:98:ec:0f:4d:74
hwaddr 1c:98:ec:0f:4d:74
inet 10.5.5.3 netmask 0xffffffff broadcast 10.5.5.3
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 1c:98:ec:0f:4d:75
hwaddr 1c:98:ec:0f:4d:75
inet 10.5.5.2 netmask 0xffffff00 broadcast 10.5.5.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
inet 10.5.5.3 netmask 0xffffffff broadcast 10.5.5.3
inet 10.5.5.2 netmask 0xffffff00 broadcast 10.5.5.255
Why the difference? I don't want to manually specify these settings as I suspect there's something else I need to fix...