On the contrary, you're simply ignoring some of us.Seeker said:Guys! You are totally NOT helping me at all!
Am I?aragon said:On the contrary, you're simply ignoring some of us.
Tell me...aragon said:Did you bother trying if_bridge(4)?
Skipping, ignoring - doesn't matter what you call it or why you do it, the effect is the same isn't it?Seeker said:I would call that skipping to longer answers, if one is super short:
Create the bridge, add vr0 and that's all. Run dhclient against vr0 and again against bridge0. You should get an IP address on each...Seeker said:How would I apply bridge here and what would I achieve?
I do it, because information is not useful to me, as it is too ambiguous.aragon said:Skipping, ignoring - doesn't matter what you call it or why you do it, the effect is the same isn't it?
Oooo, I see.aragon said:Create the bridge, add vr0 and that's all. Run dhclient against vr0 and again against bridge0. You should get an IP address on each...
The trick now is splitting the traffic between them.
The best answers are those that make you think for yourself.Seeker said:I do it, because information is not useful to me, as it is too ambiguous.
Seeker said:Guys! You are totally NOT helping me at all! That is so lame!
aragon said:The best answers are those that make you think for yourself.
Hope it works. FWIW, it works here with my dhcp server...
# ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:a4:7e:77:df:04
inet 82.a.b.61 netmask 0xfffffc00 broadcast 82.a.b.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: vr0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 2 priority 128 path cost 200000
I believe[d] that I MUST have multiple NICs.phoenix said:...In order to run mutiple dhclient processes, you MUST have multiple physical NICs.
When it comes to NICs, I believe, that to the other side, physical and virtual NICs, are completely indistinguishable.phoenix said:What's so hard to understand? (I've yet to see a setup that can get two separate IPs via DHCP on the same physical NIC.)
I have absolutely(almost), no idea what are you talking about?!? Pphoenix said:As for your new setup, it will not work. Why? Because you have completely misunderstood what 802.1q vLANs are. Without support from the ISP and all the switches/routers between you and your NIC, using vlans will not work.
I have no second spare physical NIC.phoenix said:As I mentioned before, just put a second NIC in the box and be done with it.
Use tcpdump(1) to figure what is going wrong.Seeker said:Bad thing is... I simply can't access outside world anymore as soon as bridge0 gets leased IP.
# ifconfig vr0
vr0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:0b:6a:b8:d6:dc
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Destination Gateway Flags Refs Use [color="Red"]Netif[/color] Expire
ifconfig_vr0="up"
cloned_interfaces="bridge0"
ifconfig_bridge0="ether 96:a4:7e:77:df:04 addm vr0 DHCP"
Hm..., up to which extent?aragon said:...
Hope it works. FWIW, it works here with my dhcp server...
Well, I get two IP addresses, both of which I can use, but unfortunately the source MAC address doesn't follow the source IP address of the related interface. Source MAC is always that of the interface that is set in the routing table. It might be possible to have source IP and source MAC match each other with a pf route-to rule, but I never tested this.Seeker said:Hm..., up to which extent?
Everything is same(IPs, the netmasks, and the default route) expect Netif field from [CMD="netstat "]-rn[/CMD]phoenix said:If you compare the IPs, the netmasks, and the default route after each dhclient run, which parts differ?
Destination Gateway Flags Refs Use [B][color="DarkRed"]Netif[/color][/B] Expire
How do you define IP that you can use?aragon said:Well, I get two IP addresses, both of which I can use...
I skipped hardcore testing and did one from above, without bridge if, for now.aragon said:..., but unfortunately the source MAC address doesn't follow the source IP address of the related interface. Source MAC is always that of the interface that is set in the routing table. It might be possible to have source IP and source MAC match each other with a pf route-to rule, but I never tested this.
Depends what you're trying to do, and there's more than one way. Most daemon/server software lets you configure which IP address to listen on, so it's just a matter of configuring it as such, eg. Apache:Seeker said:How do you define IP that you can use?
For me, in this context, that means publicly accessible.
Listen <ip>:<port>
ping -S <src> <dst>