Behind a router
Eugen Udma
eugenu2 at yahoo.com
Sat Feb 2 21:49:56 PST 2008
I
had
a
working
minimal
FreeBSD
system
until
I
put
it
behind
a
wireless
router.
Since
then,
my
network
is
not
accessible
anymore
when
I
boot
BSD.
On
the
same
desktop
I
have
a
Gentoo
Linux
system
which
works
just
fine,
even
if
I
didn't
touch
any
of
it's
configuration
files
after
I
installed
the
router.
The
router
is
a
ZyXEL
P-335U
connected
to
a
cable
modem.
The
desktop
is
plugged
into
a
LAN
port.
A
laptop
connected
by
wireless
has
no
problems.
The
router
gets
it's
IP
from
the
ISP
and
acts
as
a
firewall
and
a
DHCP
server
to
my
network:
it
serves
a
pool
of
32
addresses
starting
at
192.168.1.33.
Its
own
address
is
192.168.1.1.
The
IP
Subnet
Mask
is
255.255.255.0.
The
configuration
files
for
FreeBSD
are
shown
below.
The
output
of
ifconfig
and
netstat
are
also
shown
for
BSD
and
Linux.
What
I
don't
understand
is
the
fact
that
having
the
same
router
settings,
Linux
works
while
BSD
doesn't:
I
can't
even
ping
192.168.1.1,
while
the
same
ping
in
Linux
works.
I
read
the
handbook
and
various
other
BSD
information
sources
on
the
web
and
I
could
not
solve
this
issue.
My
question
is:
which
config
files
do
I
have
to
edit
in
FreeBSD
and
what
settings
should
I
use
?
Can
anybody
help
?
Thanks,
eu
/etc/rc.conf
---------------------------------------------------------------------------
ifconfig_dc0="DHCP"
hostname="localhost"
---------------------------------------------------------------------------
/etc/dhclient.conf
---------------------------------------------------------------------------
interface
"dc0"
{
send
host-name
"localhost";
request
subnet-mask,
broadcast-address,
routers,
domain-name-servers,
domain-name,
time-servers;
require
domain-name-servers;
}
---------------------------------------------------------------------------
ifconfig
dc0
(BSD)
---------------------------------------------------------------------------
dc0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
metric
0
mtu
1500
options=8<VLAN_MTU>
ether
00:14:cf:52:b4:17
inet
192.168.1.33
netmask
0xffffff00
broadcast
192.168.1.255
media:
Ethernet
autoselect
(100baseTX
<full-duplex>)
status:
active
---------------------------------------------------------------------------
ifconfig
eth0
(Linux)
---------------------------------------------------------------------------
eth0
Link
encap:Ethernet
HWaddr
00:14:CF:52:B4:17
inet
addr:192.168.1.33
Bcast:192.168.1.255
Mask:255.255.255.0
inet6
addr:
fe80::214:cfff:fe52:b417/64
Scope:Link
UP
BROADCAST
RUNNING
MULTICAST
MTU:1500
Metric:1
---------------------------------------------------------------------------
netstat
-rn
(BSD)
---------------------------------------------------------------------------
Routing
tables
Internet:
Destination
Gateway
Flags
Refs
Use
Netif
Expire
default
192.168.1.1
UGS
0
4
dc0
127.0.0.1
127.0.0.1
UH
0
0
lo0
192.168.1.0/24
link#1
UC
0
0
dc0
192.168.1.1
link#1
UHLW
2
4
dc0
---------------------------------------------------------------------------
netstat
-rn
(Linux)
---------------------------------------------------------------------------
Kernel
IP
routing
table
Destination
Gateway
Genmask
Flags
MSS
Window
irtt
Iface
192.168.1.0
0.0.0.0
255.255.255.0
U
0
0
0
eth0
127.0.0.0
0.0.0.0
255.0.0.0
U
0
0
0
lo
0.0.0.0
192.168.1.1
0.0.0.0
UG
0
0
0
eth0
---------------------------------------------------------------------------
The
content
of
/var/db/dhclient.leases.dc0
(BSD)
is:
---------------------------------------------------------------------------
lease
{
interface
"dc0";
fixed-address
192.168.1.33;
server-name
"ZYXEL_P_335U";
option
subnet-mask
255.255.255.0;
option
routers
192.168.1.1;
option
domain-name-servers
64.59.176.13,64.59.176.15;
option
domain-name
"wp.shawcable.net";
option
dhcp-lease-time
259200;
option
dhcp-message-type
5;
option
dhcp-server-identifier
192.168.1.1;
option
dhcp-renewal-time
129600;
option
dhcp-rebinding-time
226800;
renew
1
2008/2/4
16:13:41;
rebind
2
2008/2/5
19:13:41;
expire
3
2008/2/6
04:13:41;
}
---------------------------------------------------------------------------
The
content
of
/var/lib/dhcpcd/dhcpcd-eth0.info
(Linux)
is:
---------------------------------------------------------------------------
IPADDR='192.168.1.33'
NETMASK='255.255.255.0'
BROADCAST='192.168.1.255'
ROUTES=''
GATEWAYS='192.168.1.1'
HOSTNAME='dhcppc1'
DNSDOMAIN='wp.shawcable.net'
DNSSERVERS='64.59.176.13
64.59.176.15'
DHCPSID='192.168.1.1'
DHCPSNAME='ZYXEL_P_335U'
LEASEDFROM='1202012861'
LEASETIME='259200'
RENEWALTIME='129600'
REBINDTIME='226800'
INTERFACE='eth0'
CLASSID='dhcpcd
3.1.5'
CLIENTID='ff:00:00:00:03:00:01:00:01:0e:90:86:a3:00:14:cf:52:b4:17'
DHCPCHADDR='00:14:cf:52:b4:17'
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
More information about the freebsd-questions
mailing list