36 lines
764 B
Markdown
36 lines
764 B
Markdown
# `add_vlan` Command
|
|
|
|
## Name
|
|
|
|
`add_vlan`
|
|
|
|
## Synopsis
|
|
|
|
```
|
|
add_vlan ${card} ${vlan}
|
|
```
|
|
|
|
## Description
|
|
|
|
Adds an internal network segment with the specified vlan on the specified
|
|
card. For example, `add_vlan xy0 123` has the effect of
|
|
`vlans_xy0="${vlans_xy0} 123"`.
|
|
|
|
The internal implementation prevents adding duplicate VLAN ID's to the same
|
|
adaptor, by checking for their presence before adding. It can safely be
|
|
used alongside manual changes to `rc.conf` changes to these variables.
|
|
|
|
## Examples
|
|
|
|
```
|
|
add_vlan xy0 123 # Creates xy0.123
|
|
add_vlan abc3 765 # Creates abc3.765
|
|
```
|
|
|
|
## See Also
|
|
- [`add_net`](add_net.md)
|
|
- [`add_rtadv`](add_rtadv.md)
|
|
- [`add_v4_net`](add_v4_net.md)
|
|
- [`add_v6_net`](add_v6_net.md)
|
|
- [`clone_interface`](clone_interface.md)
|