22-24
Catalyst 3750-E and 3560-E Switch Software Configuration Guide
OL-9775-08
Chapter 22 Configuring DHCP Features and IP Source Guard
Configuring IP Source Guard
Beginning in privileged EXEC mode, follow these steps to configure IPSG for static hosts with IP filters
on a Layer 2 access port:
This example shows how to enable IPSG for static hosts with IP filters on a private VLAN host port:
Switch(config)#
vlan 200
Switch(config-vlan)#
private-vlan primary
Switch(config-vlan)#
exit
Switch(config)#
vlan 201
Switch(config-vlan)#
private-vlan isolated
Switch(config-vlan)#
exit
Switch(config)#
vlan 200
Switch(config-vlan)#
private-vlan association 201
Switch(config-vlan)#
exit
Switch(config)#
interface gigabitethernet1/0/3
Switch(config-if)#
switchport mode private-vlan host
Switch(config-if)#
switchport private-vlan host-association 200 201
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
vlan
vlan-id1
Enter VLAN configuration mode.
Step 3
private-vlan primary
Establish a primary VLAN on a private VLAN port.
Step 4
exit
Exit VLAN configuration mode.
Step 5
vlan
vlan-id2
Enter configuration VLAN mode for another VLAN.
Step 6
private-vlan isolated
Establish an isolated VLAN on a private VLAN port.
Step 7
exit
Exit VLAN configuration mode.
Step 8
vlan
vlan-id1
Enter configuration VLAN mode.
Step 9
private-vlan association 201
Associate the VLAN on an isolated private VLAN port.
Step 10
exit
Exit VLAN configuration mode.
Step 11
interface fastEthernet
interface-id
Enter interface configuration mode.
Step 12
switchport mode private-vlan host
(Optional) Establish a port as a private VLAN host.
Step 13
switchport private-vlan host-association
vlan-id1
vlan-id2
(Optional) Associate this port with the corresponding
private VLAN.
Step 14
ip device tracking maximum
number
Establish a maximum for the number of static IPs that
the IP device tracking table allows on the port.
The maximum is 10.
Note
You must globally configure the
ip device
tracking
maximum
number
interface command
for IPSG for static hosts to work.
Step 15
ip verify source tracking [port-security]
Activate IPSG for static hosts with MAC address
filtering on this port.
Step 16
end
Exit configuration interface mode.
Step 17
show ip device tracking all
Verify the configuration.
Step 18
show ip verify source interface
interface-id
Verify the IP source guard configuration. Display IPSG
permit ACLs for static hosts.
Содержание Catalyst 3750-E Series
Страница 48: ...Contents xlviii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...
Страница 52: ...lii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 Preface ...
Страница 1414: ...Index IN 58 Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...