PLANET WGSW-50040 User Manual

Page 192

Advertising
background image

24-21

Switch(config)#firewall enable

Switch(config)#firewall default permit

Switch(config)#interface ethernet 1/10

Switch(Config-If-Ethernet1/10)#ipv6 access-group 600 in

Switch(Config-If-Ethernet1/10)#exit

Switch(config)#exit

Configuration result:

Switch#show firewall

Firewall Status: Enable.

Firewall Default Rule: Permit.

Switch#show ipv6 access-lists

Ipv6 access-list 600(used 1 time(s))

ipv6 access-list 600 deny 2003:1:1:1::0/64 any-source

ipv6 access-list 600 permit 2003:1:1:1:66::0/80 any-source

Switch #show access-group interface ethernet 1/10

interface name:Ethernet1/10

IPv6 Ingress access-list used is 600, traffic-statistics Disable.

Scenario 5:

The configuration requirement is stated as below: The interface 1, 2, 5, 7 belongs to vlan100, Hosts with

192.168.0.1 as its IP address should be disabled from accessing the listed interfaces.

Configuration description:

1. Create the corresponding access list.

2. Configure datagram filtering.

3. Bind the ACL to the related interface.

The configuration steps are listed as below.

Switch (config)#firewall enable

Switch (config)#vlan 100

Switch (Config-Vlan100)#switchport interface ethernet 1/1;2;5;7

Switch (Config-Vlan100)#exit

Switch (config)#access-list 1 deny host-source 192.168.0.1

Switch (config)#interface vlan 100

Switch (Config-if-Vlan100)#ip access-group 1 in

Switch (Config-if-Vlan100)#exit

Configuration result:

Switch (config)#show access-group interface vlan 100

Interface VLAN 100:

Advertising