Static IP on a Bridge

Benjamin Lee ben at b1c1l1.com
Fri Dec 30 06:48:10 UTC 2011


On 12/29/2011 09:21 AM, james at colannino.org wrote:
> Quoting Matthew Seaman <m.seaman at infracaninophile.co.uk>:
> 
>> What's the error message you see when you fail to ping out?
> 
> ping: cannot resolve google.com: Host name lookup failure

It seems that you are currently receiving your resolver from DHCP as
well, you should statically configure that in /etc/resolv.conf:

nameserver 192.168.1.1

>> What does the routing table (netstat -r) look like before and after DHCP?
> 
> Before DHCP:
> 
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags    Refs      Use  Netif Expire
> localhost          link#11            UH          0        0    lo0
[...]

What happens if you run 'route add default 192.168.1.1' instead of DHCP?

What is the output of '/etc/rc.d/routing restart'?


-- 
Benjamin Lee
http://www.b1c1l1.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20111230/1cb3f911/signature.pgp


More information about the freebsd-questions mailing list