Static IP on a Bridge

Devin Teske devin.teske at fisglobal.com
Thu Dec 29 17:48:25 UTC 2011


> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org [mailto:owner-freebsd-
> questions at freebsd.org] On Behalf Of james at colannino.org
> Sent: Thursday, December 29, 2011 9:21 AM
> To: freebsd-questions at freebsd.org
> Subject: Re: Static IP on a Bridge
> 
> 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
> 
> > 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
> 
> Internet6:
> Destination        Gateway            Flags      Netif Expire
> ::                 localhost          UGRS        lo0
> localhost          localhost          UH          lo0
> ::ffff:0.0.0.0     localhost          UGRS        lo0
> fe80::             localhost          UGRS        lo0
> fe80::%re0         link#5             U           re0
> fe80::6ef0:49ff:fe link#5             UHS         lo0
> fe80::%lo0         link#11            U           lo0
> fe80::1%lo0        link#11            UHS         lo0
> fe80::%tap0        link#13            U          tap0
> fe80::2bd:8aff:fe3 link#13            UHS         lo0
> fe80::%tap1        link#14            U          tap1
> fe80::2bd:8dff:fe3 link#14            UHS         lo0
> ff01::%re0         fe80::6ef0:49ff:fe U           re0
> ff01::%lo0         localhost          U           lo0
> ff01::%tap0        fe80::2bd:8aff:fe3 U          tap0
> ff01::%tap1        fe80::2bd:8dff:fe3 U          tap1
> ff02::             localhost          UGRS        lo0
> ff02::%re0         fe80::6ef0:49ff:fe U           re0
> ff02::%lo0         localhost          U           lo0
> ff02::%tap0        fe80::2bd:8aff:fe3 U          tap0
> ff02::%tap1        fe80::2bd:8dff:fe3 U          tap1
> 
> After DHCP:
> 
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags    Refs      Use  Netif Expire
> default            192.168.1.1        UGS         0        0 bridge
> localhost          link#11            UH          0        0    lo0
> 192.168.1.0        link#12            U           0        1 bridge
> 192.168.1.103      link#12            UHS         0        0    lo0
> 
> Internet6:
> Destination        Gateway            Flags      Netif Expire
> ::                 localhost          UGRS        lo0
> localhost          localhost          UH          lo0
> ::ffff:0.0.0.0     localhost          UGRS        lo0
> fe80::             localhost          UGRS        lo0
> fe80::%re0         link#5             U           re0
> fe80::6ef0:49ff:fe link#5             UHS         lo0
> fe80::%lo0         link#11            U           lo0
> fe80::1%lo0        link#11            UHS         lo0
> fe80::%tap0        link#13            U          tap0
> fe80::2bd:8aff:fe3 link#13            UHS         lo0
> fe80::%tap1        link#14            U          tap1
> fe80::2bd:8dff:fe3 link#14            UHS         lo0
> ff01::%re0         fe80::6ef0:49ff:fe U           re0
> ff01::%lo0         localhost          U           lo0
> ff01::%tap0        fe80::2bd:8aff:fe3 U          tap0
> ff01::%tap1        fe80::2bd:8dff:fe3 U          tap1
> ff02::             localhost          UGRS        lo0
> ff02::%re0         fe80::6ef0:49ff:fe U           re0
> ff02::%lo0         localhost          U           lo0
> ff02::%tap0        fe80::2bd:8aff:fe3 U          tap0
> ff02::%tap1        fe80::2bd:8dff:fe3 U          tap1
> 
> > What does your arp table look like (arp -a) before and after DHCP?
> 
> Before DHCP:
> 
> (nothing was printed to the screen)
> 
> After DHCP:
> 
> ? (192.168.1.1) at 4c:e6:76:50:86:f6 on bridge0 expires in 1190 seconds
[bridge] ?
> (192.168.1.103) at 02:62:11:f0:35:00 on bridge0 permanent [bridge]
> 
> I can see that something is definitely not right.  Not sure how to fix
/etc/rc.conf
> so that it will be setup correctly, though.  Thank you for the help!

Add the following line (exactly as it appears) to /etc/rc.conf:

defaultrouter="192.168.1.1"

-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


More information about the freebsd-questions mailing list