Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 01:16:35 -0500 (EST)
From:      John <aqqa11@earthlink.net>
To:        freebsd-questions@freebsd.org
Subject:   strange network problem with multiple interfaces
Message-ID:  <10714877.1357452995765.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>

next in thread | raw e-mail | index | archive | help
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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10714877.1357452995765.JavaMail.root>