Re: Static IP on a Bridge

2012-01-02 Thread james

Hey everyone,

Sorry for the late response.  Got sidetracked during the New Year.   
Below is my response:


Quoting Benjamin Lee b...@b1c1l1.com:


On 12/29/2011 09:21 AM, ja...@colannino.org wrote:

Quoting Matthew Seaman m.sea...@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


I already have nameservers in /etc/resolv.conf.  Everything was fine  
before I setup the bridge.



What does the routing table (netstat -r) look like before and after DHCP?


Before DHCP:

Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
localhost  link#11UH  00lo0

[...]

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'?


[root@frodo ~]# route add default 192.168.1.1
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.1.1: Network is unreachable

[root@frodo ~]# /etc/rc.d/routing restart
route: writing to routing socket: No such process
delete net default: gateway 192.168.1.1: not in table
delete net :::0.0.0.0: gateway ::1
delete net ::0.0.0.0: gateway ::1
delete net fe80::: gateway ::1
delete net ff02::: gateway ::1
ifconfig: interface auto does not exist
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.1.1: Network is unreachable
add net :::0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
add net fe80::: gateway ::1
add net ff02::: gateway ::1

James

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Static IP on a Bridge

2011-12-29 Thread james
Hey everyone.  I've successfully setup a network bridge in  
/etc/rc.conf.  However, I am only able to access the network if I dhcp  
on bridge0 *after* the bridge is configured.  If I try to set a static  
IP on the bridge, things don't work.  Here's my /etc/rc.conf:


cloned_interfaces=bridge0 tap0 tap1
ifconfig_bridge0=addm re0 addm tap0 addm tap1 up inet 192.168.1.6  
netmask 255.255.255.0

ifconfig_re0=up
ifconfig_tap0=up
ifconfig_tap1=up
defaultrouter=192.168.1.1

bridge0 is configured with the IP 192.168.1.6, but I can't ping out.   
However, once I run dhclient in bridge0, things magically work.  Does  
anyone know why the above won't work?  Thanks!


James

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Static IP on a Bridge

2011-12-29 Thread Matthew Seaman
On 29/12/2011 07:48, ja...@colannino.org wrote:
 bridge0 is configured with the IP 192.168.1.6, but I can't ping out. 
 However, once I run dhclient in bridge0, things magically work.  Does
 anyone know why the above won't work?  Thanks!

What's the error message you see when you fail to ping out?

What does the routing table (netstat -r) look like before and after DHCP?

What does your arp table look like (arp -a) before and after DHCP?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Static IP on a Bridge

2011-12-29 Thread james

Quoting Brian Seklecki (Mobile) r...@probikesllc.com:


  Also, what MAC address does the DHCPREQUEST packet appear to be sourced
  from (from the view of your DHCP server, or on the wire somewhere
  between the two (SPAN PORT))  ~BAS


How do I do that? :)

James

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Static IP on a Bridge

2011-12-29 Thread Devin Teske
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of ja...@colannino.org
 Sent: Thursday, December 29, 2011 9:21 AM
 To: freebsd-questions@freebsd.org
 Subject: Re: Static IP on a Bridge
 
 Quoting Matthew Seaman m.sea...@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:
 DestinationGatewayFlagsRefs  Use  Netif Expire
 localhost  link#11UH  00lo0
 
 Internet6:
 DestinationGatewayFlags  Netif Expire
 :: localhost  UGRSlo0
 localhost  localhost  UH  lo0
 :::0.0.0.0 localhost  UGRSlo0
 fe80:: localhost  UGRSlo0
 fe80::%re0 link#5 U   re0
 fe80::6ef0:49ff:fe link#5 UHS lo0
 fe80::%lo0 link#11U   lo0
 fe80::1%lo0link#11UHS lo0
 fe80::%tap0link#13U  tap0
 fe80::2bd:8aff:fe3 link#13UHS lo0
 fe80::%tap1link#14U  tap1
 fe80::2bd:8dff:fe3 link#14UHS lo0
 ff01::%re0 fe80::6ef0:49ff:fe U   re0
 ff01::%lo0 localhost  U   lo0
 ff01::%tap0fe80::2bd:8aff:fe3 U  tap0
 ff01::%tap1fe80::2bd:8dff:fe3 U  tap1
 ff02:: localhost  UGRSlo0
 ff02::%re0 fe80::6ef0:49ff:fe U   re0
 ff02::%lo0 localhost  U   lo0
 ff02::%tap0fe80::2bd:8aff:fe3 U  tap0
 ff02::%tap1fe80::2bd:8dff:fe3 U  tap1
 
 After DHCP:
 
 Routing tables
 
 Internet:
 DestinationGatewayFlagsRefs  Use  Netif Expire
 default192.168.1.1UGS 00 bridge
 localhost  link#11UH  00lo0
 192.168.1.0link#12U   01 bridge
 192.168.1.103  link#12UHS 00lo0
 
 Internet6:
 DestinationGatewayFlags  Netif Expire
 :: localhost  UGRSlo0
 localhost  localhost  UH  lo0
 :::0.0.0.0 localhost  UGRSlo0
 fe80:: localhost  UGRSlo0
 fe80::%re0 link#5 U   re0
 fe80::6ef0:49ff:fe link#5 UHS lo0
 fe80::%lo0 link#11U   lo0
 fe80::1%lo0link#11UHS lo0
 fe80::%tap0link#13U  tap0
 fe80::2bd:8aff:fe3 link#13UHS lo0
 fe80::%tap1link#14U  tap1
 fe80::2bd:8dff:fe3 link#14UHS lo0
 ff01::%re0 fe80::6ef0:49ff:fe U   re0
 ff01::%lo0 localhost  U   lo0
 ff01::%tap0fe80::2bd:8aff:fe3 U  tap0
 ff01::%tap1fe80::2bd:8dff:fe3 U  tap1
 ff02:: localhost  UGRSlo0
 ff02::%re0 fe80::6ef0:49ff:fe U   re0
 ff02::%lo0 localhost  U   lo0
 ff02::%tap0fe80::2bd:8aff:fe3 U  tap0
 ff02::%tap1fe80::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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Static IP on a Bridge

2011-12-29 Thread Brian Seklecki (Mobile)



  Also, what MAC address does the DHCPREQUEST packet appear to be sourced
  from (from the view of your DHCP server, or on the wire somewhere
  between the two (SPAN PORT))  ~BAS

  This sounds familar.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Static IP on a Bridge

2011-12-29 Thread james

Quoting Matthew Seaman m.sea...@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:
DestinationGatewayFlagsRefs  Use  Netif Expire
localhost  link#11UH  00lo0

Internet6:
DestinationGatewayFlags  Netif Expire
:: localhost  UGRSlo0
localhost  localhost  UH  lo0
:::0.0.0.0 localhost  UGRSlo0
fe80:: localhost  UGRSlo0
fe80::%re0 link#5 U   re0
fe80::6ef0:49ff:fe link#5 UHS lo0
fe80::%lo0 link#11U   lo0
fe80::1%lo0link#11UHS lo0
fe80::%tap0link#13U  tap0
fe80::2bd:8aff:fe3 link#13UHS lo0
fe80::%tap1link#14U  tap1
fe80::2bd:8dff:fe3 link#14UHS lo0
ff01::%re0 fe80::6ef0:49ff:fe U   re0
ff01::%lo0 localhost  U   lo0
ff01::%tap0fe80::2bd:8aff:fe3 U  tap0
ff01::%tap1fe80::2bd:8dff:fe3 U  tap1
ff02:: localhost  UGRSlo0
ff02::%re0 fe80::6ef0:49ff:fe U   re0
ff02::%lo0 localhost  U   lo0
ff02::%tap0fe80::2bd:8aff:fe3 U  tap0
ff02::%tap1fe80::2bd:8dff:fe3 U  tap1

After DHCP:

Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGS 00 bridge
localhost  link#11UH  00lo0
192.168.1.0link#12U   01 bridge
192.168.1.103  link#12UHS 00lo0

Internet6:
DestinationGatewayFlags  Netif Expire
:: localhost  UGRSlo0
localhost  localhost  UH  lo0
:::0.0.0.0 localhost  UGRSlo0
fe80:: localhost  UGRSlo0
fe80::%re0 link#5 U   re0
fe80::6ef0:49ff:fe link#5 UHS lo0
fe80::%lo0 link#11U   lo0
fe80::1%lo0link#11UHS lo0
fe80::%tap0link#13U  tap0
fe80::2bd:8aff:fe3 link#13UHS lo0
fe80::%tap1link#14U  tap1
fe80::2bd:8dff:fe3 link#14UHS lo0
ff01::%re0 fe80::6ef0:49ff:fe U   re0
ff01::%lo0 localhost  U   lo0
ff01::%tap0fe80::2bd:8aff:fe3 U  tap0
ff01::%tap1fe80::2bd:8dff:fe3 U  tap1
ff02:: localhost  UGRSlo0
ff02::%re0 fe80::6ef0:49ff:fe U   re0
ff02::%lo0 localhost  U   lo0
ff02::%tap0fe80::2bd:8aff:fe3 U  tap0
ff02::%tap1fe80::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!


James


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Static IP on a Bridge

2011-12-29 Thread james

Quoting Devin Teske devin.te...@fisglobal.com:


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

defaultrouter=192.168.1.1


That line's been there the whole time.  Hasn't helped :(

James


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Static IP on a Bridge

2011-12-29 Thread james

Quoting Devin Teske devin.te...@fisglobal.com:


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

defaultrouter=192.168.1.1


I should probably re-port my original configuration:

cloned_interfaces=bridge0 tap0 tap1
ifconfig_bridge0=addm re0 addm tap0 addm tap1 up inet 192.168.1.6  
netmask 255.255.255.0

ifconfig_re0=up
ifconfig_tap0=up
ifconfig_tap1=up
defaultrouter=192.168.1.1

James

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Static IP on a Bridge

2011-12-29 Thread Benjamin Lee
On 12/29/2011 09:21 AM, ja...@colannino.org wrote:
 Quoting Matthew Seaman m.sea...@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:
 DestinationGatewayFlagsRefs  Use  Netif Expire
 localhost  link#11UH  00lo0
[...]

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/



signature.asc
Description: OpenPGP digital signature