Switch(config-if-PORT)# ip
sourceguard static-ip [A.B.C.D
| A:B:C:D:E:F:G:H] vlan [1-
4094]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Add a static IP/IPv6 address to static
IP address table.
Note: Only one port could be
assigned at a time.
Specify a VLAN ID.
Note: Static IP can only be
configured when IP sourceguard
is set to fixed-ip.
Switch(config)# interface
[port_list]
Enter several discontinuous port
numbers separated by commas or a
range of ports with a hyphen. For
example:1,3 or 2-4
Switch(config-if-PORT-PORT)#
no ip sourceguard
Reset IP sourceguard setting back to
the default (unlimited).
Switch(config-if- PORT)# no ip
sourceguard static-ip [A.B.C.D
| A:B:C:D:E:F:G:H] vlan [1-
4094]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Remove the specified IP/IPv6
address.
Note: Only one port could be
assigned at a time.
Remvoe the specified VLAN ID.
Switch# show ip sourceguard
interface
Show each interface’s IP
sourceguard type.
Switch# show ip sourceguard
interface [port_list]
Show the specified interface’s IP
sourceguard type.
Switch# show ip sourceguard
static-ip
Show IP souceguard static IP table.
Switch(config)# show ip
sourceguard interface
Show each interface’s IP
sourceguard type.
Switch(config)# show ip
sourceguard interface
[port_list]
Show the specified interface’s IP
sourceguard type.
Switch(config)# show ip
sourceguard static-ip
Show IP souceguard static IP table.
Examples of IP Source Guard & Interface
Switch(config)# interface1
Enter several discontinuous port
numbers separated by commas or a
range of ports with a hyphen. For
example:1,3 or 2-4
Switch(config-if-1)# ip sourceguard fixed-ip
Set the authorized access type for
the selected ports as fixed-ip.
Switch(config-if-1)# ip sourceguard static-ip
192.168.0.100 vlan 20
Create a static IP 192.168.0.100 to
VLAN entry 20.