RE: Static IP on a Bridge



-----Original Message-----
From: owner-freebsd-questions@xxxxxxxxxxx [mailto:owner-freebsd-
questions@xxxxxxxxxxx] On Behalf Of james@xxxxxxxxxxxxx
Sent: Thursday, December 29, 2011 9:21 AM
To: freebsd-questions@xxxxxxxxxxx
Subject: Re: Static IP on a Bridge

Quoting Matthew Seaman <m.seaman@xxxxxxxxxxxxxxxxxxxxxx>:

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.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: dhcpd
    ... You can assign two IP addresses to a _host_ if it has two _NICs_; ... having two DHCP servers running; ... remembering to fix the routing table for source based routing (remember ...
    (comp.os.linux.networking)
  • 2wire router configuration
    ... firewall on this router and to configure my network ... Go to Home Network -> Advanced Settings ... X Default DHCP Pool ... Configure host to use DHCP with host name sent ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Working on howl port
    ... software needs to work as if it has no control over network allocation, ... the host does not have knowledge of what IPv4 Link- ... these modifications reduce the reliability of the DHCP service. ... is not sufficient reason to unconfigure a valid DHCP ...
    (freebsd-net)
  • Re: installing ubuntu
    ... option routers 192.168.1.254; ... # If this DHCP server is the official DHCP server for the local ... # This is a very basic subnet declaration. ... # will still come from the host declaration. ...
    (Ubuntu)
  • Re: installing ubuntu
    ... option routers 192.168.1.254; ... # If this DHCP server is the official DHCP server for the local ... # This is a very basic subnet declaration. ... # will still come from the host declaration. ...
    (Ubuntu)