Hello
I have a FreeBSD server with two NICs i.e re0 with IP 21.9.8.7 and re1 with IP 41.2.4.30. I want each to have a gateway of its own so that all routes are active. I have the seetings below in /etc/rc.conf but they don't work. I can reach the server on interface re0 but not on re1.
Output of my
I would like to know what I am doing wrong. I appreciate any help rendered
Thank you.
I have a FreeBSD server with two NICs i.e re0 with IP 21.9.8.7 and re1 with IP 41.2.4.30. I want each to have a gateway of its own so that all routes are active. I have the seetings below in /etc/rc.conf but they don't work. I can reach the server on interface re0 but not on re1.
Code:
defaultrouter="192.168.100.10"
ifconfig_re0="inet 21.9.8.7 netmask x.x.x.x"
ifconfig_re0_alias0="inet 192.168.100.8 netmask x.x.x.x"
ifconfig_re1="inet 41.2.4.30 netmask x.x.x.x"
static_route="net1"
route_net1="-net 41.x.x.x/26 192.168.100.20"
Output of my
netstat
is
Code:
# netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.100.10 UGS 1 185 re0
41.x.x.x/26 link#4 U 0 0 re1
localhost link#5 UH 0 0 lo0
192.168.100.0 link#1 U 0 0 re0
21.x.x.x/28 link#1 U 0 0 re0
I would like to know what I am doing wrong. I appreciate any help rendered
Thank you.