http://wtf.hijacked.us/wiki/index.php?title=OpenBSD_QinQ&feed=atom&action=history
OpenBSD QinQ - Revision history
2024-03-29T01:34:07Z
Revision history for this page on the wiki
MediaWiki 1.35.0
http://wtf.hijacked.us/wiki/index.php?title=OpenBSD_QinQ&diff=960&oldid=prev
Jontow: 1 revision
2013-01-05T02:50:42Z
<p>1 revision</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:50, 5 January 2013</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Jontow
http://wtf.hijacked.us/wiki/index.php?title=OpenBSD_QinQ&diff=959&oldid=prev
Jontow: add Q-in-Q lab
2010-08-25T20:52:35Z
<p>add Q-in-Q lab</p>
<p><b>New page</b></p><div>I had a need to test QinQ/Q-in-Q/VLAN tag stacking/nesting/whatever-its-called-today, and my lab runs<br/><br />
OpenBSD 4.8-current as of this article; so thats what needed to do the testing. I came up with the<br/><br />
following scenario, using 2 soekris net5501s, 2 straight through, and 3 crossover cables.<br/><br />
It involves the use of multiple routing domains, bridging, and mostly VLANs.<br/><br />
<br/><br />
The straight through cables cable vr0 on each soekris to the LAN for management.<br/><br />
Each crossover connects vr1 to vr1, vr2 to vr2, vr3 to vr3.<br/><br />
<br/><br />
Once that's done, note that the following is a *script* and can simply be run as such in my lab, but<br/><br />
of course, your results may vary.<br/><br />
<br />
<pre><br />
#!/bin/sh<br />
#<br />
# 2010-08-25 -- jontow@zenbsd.net<br />
#<br />
# This brings up a q-in-q lab, requires the remote end to simply return<br />
# packets, easily accomplished like this on the remote machine:<br />
#<br />
# # ifconfig bridge0 create<br />
# # ifconfig bridge0 add vr2 add vr3 up<br />
#<br />
# Make sure the local vr3 is cabled to the remote vr3, and<br />
# the same for vr2 with crossovers.<br />
#<br />
<br />
################################################################################<br />
#<br />
# Outer tag, vr2<br />
#<br />
ifconfig vlan100 create<br />
ifconfig vlan100 vlan 100 vlandev vr2 up<br />
<br />
# Inner tag 200, vr2<br />
ifconfig vlan200 create<br />
ifconfig vlan200 vlan 200 vlandev vlan100 up<br />
ifconfig vlan200 rdomain 2<br />
ifconfig vlan200 inet 10.200.200.1/24<br />
<br />
# Inner tag 201, vr2<br />
ifconfig vlan201 create<br />
ifconfig vlan201 vlan 201 vlandev vlan100 up<br />
ifconfig vlan201 rdomain 2<br />
ifconfig vlan201 inet 10.200.201.1/24<br />
<br />
################################################################################<br />
#<br />
# Outer tag, vr3<br />
#<br />
<br />
ifconfig vlan9100 create<br />
ifconfig vlan9100 vlan 100 vlandev vr3 up<br />
<br />
<br />
# Inner tag 200, vr3<br />
ifconfig vlan9200 create<br />
ifconfig vlan9200 vlan 200 vlandev vlan9100 up<br />
ifconfig vlan9200 rdomain 3<br />
ifconfig vlan9200 inet 10.200.200.2/24<br />
<br />
# Inner tag 201, vr3<br />
ifconfig vlan9201 create<br />
ifconfig vlan9201 vlan 201 vlandev vlan9100 up<br />
ifconfig vlan9201 rdomain 3<br />
ifconfig vlan9201 inet 10.200.201.2/24<br />
<br />
################################################################################<br />
#<br />
# Test scenario..<br />
#<br />
<br />
echo "Test:"<br />
echo ""<br />
echo "from-v200-vr2# ping -V2 10.200.200.2"<br />
echo "from-v201-vr2# ping -V2 10.200.201.2"<br />
echo "from-v200-vr3# ping -V3 10.200.200.1"<br />
echo "from-v201-vr3# ping -V3 10.200.201.1"<br />
echo ""<br />
exit<br />
</pre></div>
Jontow