Hi FreeBSDers,
I'm new to FreeBSD, and am having some trouble setting up a simple router with two NICs.
computer --> ue0 --> router --> re0 --> ISP gateway to Internet
I would like pings from a computer connected to ue0 to be delivered to the Internet. I would appreciate any thoughts on how to trouble-shoot this.
The following is my rc.conf
Output from
Output from
When ue0 is connected to another computer, the connected computer can successfully ping, 192.168.119.1, the address assigned to ue0. However, pings to 192.168.1.83 do not get returned. I have tried to add a route between the two nics, but am told that the route already exists. No firewall is running.
Any thoughts?
Thanks,
Rob
I'm new to FreeBSD, and am having some trouble setting up a simple router with two NICs.
computer --> ue0 --> router --> re0 --> ISP gateway to Internet
I would like pings from a computer connected to ue0 to be delivered to the Internet. I would appreciate any thoughts on how to trouble-shoot this.
The following is my rc.conf
Code:
hostname="myhost"
ifconfig_re0="DHCP"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
gateway_enable="YES"
ifconfig_ue0="inet 192.168.119.1 netmask 255.255.255.0"
defaultrouter="192.168.1.254"
Output from
netstat
Code:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.254 UGS 0 0 re0
127.0.0.1 link#2 UH 0 0 lo0
192.168.1.0/24 link#1 U 0 0 re0
192.168.1.83 link#1 UHS 0 0 lo0
192.168.119.0/24 link#3 U 0 0 ue0
192.168.119.1 link#3 UHS 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#2 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#2 U lo0
fe80::1%lo0 link#2 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0
Output from
ifconfig
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether e0:3f:49:6e:25:cc
inet 192.168.1.83 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
ether 8c:ae:4c:fe:9d:10
inet 192.168.119.1 netmask 0xffffff00 broadcast 192.168.119.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (none)
status: no carrier
When ue0 is connected to another computer, the connected computer can successfully ping, 192.168.119.1, the address assigned to ue0. However, pings to 192.168.1.83 do not get returned. I have tried to add a route between the two nics, but am told that the route already exists. No firewall is running.
Any thoughts?
Thanks,
Rob