dragonflymr
Oct 28, 2015Cirrostratus
Set VLAN and Tunnel Traffic to All VLANs and Tunnels via tmsh
Hi,
I am puzzled how to do that.
Scenario:
Virtual with All VLANs and Tunnels in GUI:
ltm virtual name {
auto-lasthop disabled
destination 1.1.1.1:http
ip-protocol tcp
last-hop-pool last_hop_pl
mask 255.255.255.255
pool pool
profiles {
tcp { }
}
source 0.0.0.0/0
vs-index 604
}
tmsh mod ltm virtual name vlans add {VLANID} vlans-enabled issued
ltm virtual name {
auto-lasthop disabled
destination 1.1.1.1:http
ip-protocol tcp
last-hop-pool last_hop_pl
mask 255.255.255.255
pool pool
profiles {
tcp { }
}
source 0.0.0.0/0
vlans {
VLAN299
}
vlans-enabled
vs-index 604
}
tmsh mod ltm virtual name vlans none or default issued
ltm virtual name {
auto-lasthop disabled
destination 1.1.1.1:http
ip-protocol tcp
last-hop-pool last_hop_pl
mask 255.255.255.255
pool pool
profiles {
tcp { }
}
source 0.0.0.0/0
vlans-enabled
vs-index 604
}
So vlans-enabled is still there - in GUI it equals setting Enabled on... with no VLAN in Selected area.
In effect no traffic is allowed from ANY VLAN to this virtual.
I tried everything I could figure out to remove vlans-enabled and end up with original virtual config (first listing) but failed.
Is there any trick to do that from tmsh or it's only possible from GUI? Tested on 11.5.3HF2 VE.
Piotr