strange network problem with multiple interfaces
John
aqqa11 at earthlink.net
Sun Jan 6 06:18:45 UTC 2013
hi, I just installed stock FreeBSD 9.0 on a PowerEdge server with two network cards:
bce0 is directly connected to isp's gateway
bce1~3 are connected to the inside port of a router configured as 192.168.1.0/24 network with 192.168.1.1 as gateway
If the ENTIRE content of /etc/rc.conf is:
hostname="test.com"
ifconfig_bce0="inet 1.2.3.4 netmask 255.255.255.0"
defaultrouter="1.2.3.1"
#the above numbers are supplied by isp
ifconfig_bce1="inet 192.168.1.4 netmask 255.255.255.0"
static_routes="interface1"
route_interface1="-net 192.168.1.0/24 192.168.1.1"
then the machine can do all public network activities without problem, but doesn't appear to be able to connect to the router at all. In fact, if I do:
tcpdmp -l -i eth1 host 192.168.1.1
and then do "telnet 192.168.1.1 443", there are two wierd results:
1. the tcpdump catches nothing
2. the telnet window got the following result:
Trying 192.168.1.1...
telnet: connect to address 192.168.1.1: Operation not permitted
telnet: Unable to connect to remote host
routing table is the following:
#netstat -rn
Destination Gateway Flags Refs Use Netif Expire
default 1.2.3.1 UGS 0 193 bce0
1.2.3.0/24 link#1 U 0 0 bce0
1.2.3.4 link#1 UHS 0 0 lo0
127.0.0.1 link#5 UH 0 0 lo0
192.168.1.0/24 192.168.1.1 UGS 0 1 bce1
192.168.1.4 link#2 UHS 0 1 lo0
No firewall is configured. Also unless there is a known relevant bug of the stock 9.0, we want to stick to this version for the moment due to some other concern.
Could someone help to enlighten what I did wrong? Thank you!
More information about the freebsd-questions
mailing list