Blackhole VLAN Configuration
Last updated
Last updated
First we must configure the network for basic reachability. This How To assumes you already know how to configure and assign VLANs, trunks, SVIs, DHCP(Our DHCP server is a router), and DHCP relay.
Next comes the simple configuration of a blackhole VLAN. All we do here is configure a VLAN ID that has a random number we will not use in production, and then assign that VLAN to all unused ports.
SW1(config)#interface range eth0/4 - 11
# This command brings into the sub-configuration mode for a range of interfaces
SW1(config-if-range)#switchport mode access
# This sets the switchport to access mode
SW1(config-if-range)# switchport access vlan 888
# This sets the access VLAN to be used on the port
SW1(config-if-range)#switchport trunk allowed vlan except 888
# This command will allow all VLANs across the trunk except for the VLAN specified