Netgear M5300-28G-POE+ (GSM7228PSv1h2) - 12-Port Managed Gigabit Switch Ratgeber Für Administratoren

Seite von 721
ACLs 
258
Managed Switches 
CLI: Redirect a Traffic Stream
The script in this section shows how to redirect an HTTP traffic stream received in an 
interface to the specified interface. This example redirects the HTTP traffic stream received in 
port 1/0/1 to port 1/0/19. 
1. 
Create an IP access control list with the name redirectHTTP.
(Netgear Switch) (Config)#ip access-list redirectHTTP
2. 
Define a rule to match the HTTP stream and define a rule to permit all others.
(Netgear Switch) (Config-ipv4-acl)# permit tcp any any eq http redirect 1/0/19
(Netgear Switch) (Config-ipv4-acl)# permit every
3. 
Bind the ACL with interface 1/0/1.
(Netgear Switch) (Interface 1/0/1)#ip access-group redirectHTTP in 1
 
4. 
View the configuration.
(Netgear Switch) # show ip access-lists
Current number of ACLs: 1  Maximum number of ACLs: 100
   
ACL ID/Name 
 
       Rules   Direction    Interface(s)         VLAN(s)
------------------  -----   ----------   -------------------  -------
redirectHTTP 
 
      2    
 
  inbound     
 
1/0/1
(Netgear Switch)  #show ip access-lists redirectHTTP
ACL Name: redirectHTTP
Inbound Interface(s): 1/0/1
Rule Number: 1
Action......................................... permit
Match All...................................... FALSE
Protocol....................................... 6(tcp)
Destination L4 Port Keyword.................... 80(www/http)
Redirect Interface............................. 1/0/19
   
Rule Number: 2
Action......................................... permit
Match All...................................... TRUE