Hi,
I am new to FreeBSD.I am having some configuration issues with routing I am doing some experiment with some PC's that are not connected to the internet. I am trying to configure some PCs to act as routers.
The network topology is as follows:
Laptop->FreeBSD RouterA-> FreeBSD RouterB -> PC
FreeBSD Router A & B has 2 NICs each, the configurations:
Here is the rc.conf file:
NOTE that I did a test where I have removed the static route and put a default route in Router A as defaultrouter="192.168.10.2" and B as defaultrouter="192.168.10.3"
I get the same results as below with the default routes as well.
Could you please advise what is wrong here?
I am new to FreeBSD.I am having some configuration issues with routing I am doing some experiment with some PC's that are not connected to the internet. I am trying to configure some PCs to act as routers.
The network topology is as follows:
Laptop->FreeBSD RouterA-> FreeBSD RouterB -> PC
FreeBSD Router A & B has 2 NICs each, the configurations:
Code:
Laptop: I.P: 192.168.11.1
Netmask: 255.255.255.0
Default Gateway: 192.168.11.2
Router A: NIC1(r10): 192.168.11.2
NIC2(Bge0): 192.168.10.3
Router B: NIC1(r10): 192.168.12.2
NIC2(Bge0): 192.168.10.2
PC: IP 192.168.12.1
Netmask: 255.255.255.0
D.G: 192.168.12.2
Code:
ROUTERA: gateway_enable="YES"
ifconfig_bge0="inet 192.168.10.3 netmask 255.255.255.0"
ifconfig_r10="inet 192.168.11.2 netmask 255.255.255.0"
static_routes="LAN1"
route_LAN1="-net 192.168.12.0/24 192.168.10.2"
Code:
ROUTERB: gateway_enable="YES"
ifconfig_bge0="inet 192.168.10.2 netmask 255.255.255.0"
ifconfig_r10="inet 192.168.12.1 netmask 255.255.255.0"
static_routes="LAN2"
route_LAN2"-net 192.168.11.0/24 192.168.10.3"
NOTE that I did a test where I have removed the static route and put a default route in Router A as defaultrouter="192.168.10.2" and B as defaultrouter="192.168.10.3"
I get the same results as below with the default routes as well.
Code:
PING tests:
192.168.11.1(PING)192.168.12.1 = 100% packet loss
192.168.11.1(PING)192.168.12.2 = 100% packet received
192.168.12.1(PING)192.168.11.2 = 100% packet received.
Router A ping 192.168.11.1 & 192.168.12.1 = 100% packet loss
Router B ping 192.168.11.1 & 192.168.12.1 = 100% packet loss
Router A ping router B = 100% packet received.
Could you please advise what is wrong here?