This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
network:freebsdvlan [2015/01/06 14:54] tschulz |
network:freebsdvlan [2016/10/26 13:10] (current) tschulz |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
====== Tagged Vlans on FreeBSD ====== | ====== Tagged Vlans on FreeBSD ====== | ||
+ | ===== On the Fly ===== | ||
+ | <file bash> | ||
+ | ifconfig vlan_device.vlan_id create | ||
+ | </file> | ||
+ | <file bash> | ||
+ | ifconfig em0.247 | ||
+ | </file> | ||
+ | |||
+ | |||
+ | ===== Using rc.conf ===== | ||
The first thing to do is to list the VLANs that will be on the **em0** adapter: | The first thing to do is to list the VLANs that will be on the **em0** adapter: | ||
Line 20: | Line 32: | ||
Now **reboot your system** or run **/etc/rc.d/netif restart** - you should now see something like this in your ifconfig output: | Now **reboot your system** or run **/etc/rc.d/netif restart** - you should now see something like this in your ifconfig output: | ||
<file> | <file> | ||
- | lan0.101: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | + | em0.101: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 |
ether 00:1b:b9:8b:ca:33 | ether 00:1b:b9:8b:ca:33 | ||
inet 10.1.1.1 netmask 0xffffff00 broadcast 10.1.1.255 | inet 10.1.1.1 netmask 0xffffff00 broadcast 10.1.1.255 | ||
Line 28: | Line 40: | ||
status: active | status: active | ||
vlan: 101 parent interface: lan0 | vlan: 101 parent interface: lan0 | ||
- | lan0.102: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | + | em0.102: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 |
ether 00:1b:b9:8b:ca:33 | ether 00:1b:b9:8b:ca:33 | ||
inet 10.1.2.1 netmask 0xffffff00 broadcast 10.1.2.255 | inet 10.1.2.1 netmask 0xffffff00 broadcast 10.1.2.255 |