Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 15:34:08 +0100
From:      Brian Candler <B.Candler@pobox.com>
To:        William <willay@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: VLAN interfaces and routing
Message-ID:  <20060427143408.GB12885@uk.tiscali.com>
In-Reply-To: <a24358fb0604260555x3cfb1f43h161535609f48a9a@mail.gmail.com>
References:  <a24358fb0604260555x3cfb1f43h161535609f48a9a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 26, 2006 at 01:55:11PM +0100, William wrote:
> The switch is a Cisco 3550, trunking is setup on the port and I've
> allowed the VLANS I'm interested in using.
> 
> The end result is being able to communicate with all devices on said
> VLANS which is fantastic but my next objective is to have the box talk
> to other networks via a default route, I've tried applying the default
> route by defaultrouter= in rc.conf, also manually adding it using
> route once the box has booted up but it always results in no replys
> back from other networks, even netstat -r seems to hang.

The hang is probably just because your DNS server is unreachable. Use
"netstat -rn" instead, or just rm /etc/resolv.conf. (It annoys me that
traceroute and some versions of ping and telnet default to trying DNS
lookups, when if there's a network problem the DNS server is probably not
available)

Manually adding the route ought to be fine. Can you ping your default
gateway? Does 'ifconfig -a' show the correct settings? The default gateway
must be on a directly-connected network of course, i.e. within the range of
one of the subnets shown by 'ifconfig -a'. When you ping the default
gateway, does the ARP cache get updated? (arp -an)

HTH,

Brian.



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