Skip to content

Commit

Permalink
docs: 802.1ad vlan interfaces
Browse files Browse the repository at this point in the history
Bug-Url: #361
  • Loading branch information
svinota committed May 31, 2017
1 parent 1005b37 commit a6d2f61
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pyroute2/iproute.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,24 @@ def link(self, command, **kwarg):
link=ip.link_lookup(ifname="eth0")[0],
vlan_id=100)
There is a possibility to create also 802.1ad interfaces::
# create external vlan 802.1ad, s-tag
ip.link("add",
ifname="v100s",
kind="vlan",
link=ip.link_lookup(ifname="eth0")[0],
vlan_id=100,
vlan_protocol=0x88a8)
# create internal vlan 802.1q, c-tag
ip.link("add",
ifname="v100c",
kind="vlan",
link=ip.link_lookup(ifname="v100s")[0],
vlan_protocol=0x8100)
► vrf
VRF interfaces (see linux/Documentation/networking/vrf.txt)::
Expand Down

0 comments on commit a6d2f61

Please sign in to comment.