Re: tap dhcp

2009-09-28 Thread Bakul Shah
On Mon, 28 Sep 2009 15:21:17 CDT Adam Vande More wrote: > Am I doing something wrong here? > > kldload if_tap if_bridge > sysctl net.link.tap.user_open=1 > ifconfig tap0 create > ifconfig bridge create > ifconfig bridge0 addm tap0 addm em0 > > it# dhclient tap0 > DHCPDISCOVER on tap0 to 255.255

Re: tap dhcp

2009-09-28 Thread Adam Vande More
On Mon, Sep 28, 2009 at 8:34 PM, Julian Elischer wrote: > Juli Mallett wrote: > There are things you can do with netgraph, but they're not very good. > Do you actually want both interfaces to see the same traffic, or do > you want to create two virtual interfaces attached to one physical? > If you

Re: tap dhcp

2009-09-28 Thread Julian Elischer
Juli Mallett wrote: My goal is essentially clone my network connection recieving two DHCP leases to the same box. Also I am aware of ifconfig alias, but that didn't seem up to the task. Why? Do you actually want both interfaces to see the same traffic, or do you want to create two virtu

Re: tap dhcp

2009-09-28 Thread Juli Mallett
On Mon, Sep 28, 2009 at 14:50, Adam Vande More wrote: > Should I recieve a response?  From tap(4), and other examples my > understanding is yes, but that is not what I'm seeing in practice.  Forgive > my ignorance, but wouldn't bridge0 pass a response back to tap0? tap(4) takes the network interf

Re: tap dhcp

2009-09-28 Thread Adam Vande More
On Mon, Sep 28, 2009 at 4:14 PM, Juli Mallett wrote: > On Mon, Sep 28, 2009 at 13:21, Adam Vande More > wrote: > > Am I doing something wrong here? > > That depends on what you're expecting to happen. What do you think > tap(4) does and what are you trying to accomplish with using it? > Interfa

Re: tap dhcp

2009-09-28 Thread Juli Mallett
On Mon, Sep 28, 2009 at 13:21, Adam Vande More wrote: > Am I doing something wrong here? That depends on what you're expecting to happen. What do you think tap(4) does and what are you trying to accomplish with using it? Interface bridging controls what happens on packet ingress — when a packet

tap dhcp

2009-09-28 Thread Adam Vande More
Am I doing something wrong here? kldload if_tap if_bridge sysctl net.link.tap.user_open=1 ifconfig tap0 create ifconfig bridge create ifconfig bridge0 addm tap0 addm em0 it# dhclient tap0 DHCPDISCOVER on tap0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on tap0 to 255.255.255.255 port 67 in