To add VLAN subnets
VLAN subnets may only be added to portsets that are VLAN enabled. In our example, portSet2
is VLAN enabled. We shall add the new subnet, SalesSubnet with a VLAN tag ID of 23. This
will not be the default gateway.
1.
Copy the current config that has just been created and activated by the wizard to a new
config name that can be edited:
# net copy config from current to ACMECorpNetwork1
2.
View the copied configuration with:
# net show config ACMECorpNetwork1
----------------------
Network Name: ACMECorpNetwork1
Network Description: Created by wizard on: Wed Apr 30 15:26:40 2014
Write Protected: no
DNS Servers: 172.1.1.100 172.1.2.100
Port Sets: portset_1 portset_2 portset_3
----------------------
Number of Networks: 3
Number of VLANs configured: 1 out of possible 128
----------------------
Network: subnet_1
----------------------
IP Addresses: dhcp
Net Mask: dhcp
Domain Name: dhcp
Gateway: dhcp
Default Network:
VLAN tag:
Port Set: portset_1 with these interfaces: eth0
Encryption Links:
Bonding Mode: Not applicable
----------------------
Network: subnet_2
----------------------
IP Addresses: 10.1.1.21
Net Mask: 255.255.0.0
Domain Name: rnd.mycompany.net
Gateway: 10.1.1.1
Default Network:
VLAN tag: 22
Port Set: portset_2 with these interfaces: eth5 eth7
Encryption Links:
Bonding Mode: 4 (Link Aggregate Control Protocol (LACP) Bonding)
----------------------
Network: subnet_3
----------------------
IP Addresses: 172.1.1.66
Net Mask: 255.255.0.0
Domain Name: uk.mycompany.net
Gateway: 172.1.1.1
Default Network: yes
VLAN tag:
Port Set: portset_3 with these interfaces: eth2 eth3
Encryption Links:
Bonding Mode: 6 (Active Load Balance Bonding)
Command Successful
3.
Add the VLAN subnet, SalesSubnet, to this configuration. It has an IP address of 10.2.1.55
and a VLAN tag ID of 23.
# net add subnet ACMECorpNetwork1 subnet SalesSubnet portset portset_2
nl
Modifying the current network configuration
57