Ruijie# conf terminal // Enter global configuration mode Ruijie(config)# ip access-list extend 100 // Create ACL 100 Ruijie(config-ext-nacl)# permit ip host 10.1.1.1 host 20.1.1.2 // Match packets from the PC to S86 Ruijie(config-ext-nacl)# permit ip any any // ACL by default denies all, this rule is required to allow all traffic, otherwise the network will be cut off Ruijie(config)# ip access-list extend 101 // Create ACL 101 Ruijie(config-ext-nacl)# permit ip host 20.1.1.2 host 10.1.1.1 // Match return packets from S86 to the PC Ruijie(config-ext-nacl)# permit ip any any // ACL by default denies all, this rule is required to allow all traffic, otherwise the network will be cut off Ruijie# conf terminal // Enter global configuration mode Ruijie(config)# ip access-list extend 102 // Create ACL 102 Ruijie(config-ext-nacl)# permit ip host 10.1.1.1 host 20.1.1.2 // Match packets from the PC to S86 Ruijie(config-ext-nacl)# permit ip any any // ACL by default denies all, this rule is required to allow all traffic, otherwise the network will be cut off Ruijie(config)# ip access-list extend 103 // Create ACL 103 Ruijie(config-ext-nacl)# permit ip host 20.1.1.2 host 10.1.1.1 // Match return packets from S86 to the PC Ruijie(config-ext-nacl)# permit ip any any // ACL by default denies all, this rule is required to allow all traffic, otherwise the network will be cut off Ruijie(config)# ip access-list count 100 // Enable counting for ACL 100 Ruijie(config)# ip access-list count 101 // Enable counting for ACL 101 Ruijie(config)# ip access-list count 102 // Enable counting for ACL 102 Ruijie(config)# ip access-list count 103 // Enable counting for ACL 103 |
Ruijie#conf terminal // Enter global configuration mode Ruijie(config)# ip access-list extend 100 // Create ACL 100 Ruijie(config-ext-nacl)# permit ip host 10.1.1.1 host 20.1.1.2 // Match packets from the PC to S86 Ruijie(config-ext-nacl)# permit ip any any // ACL by default denies all, this rule is required to allow all traffic, otherwise the network will be cut off Ruijie(config)# ip access-list extend 101 // Create ACL 101 Ruijie(config-ext-nacl)# permit ip host 20.1.1.2 host 10.1.1.1 // Match return packets from S86 to the PC Ruijie(config-ext-nacl)# permit ip any any // ACL by default denies all, this rule is required to allow all traffic, otherwise the network will be cut off Ruijie(config)# ip access-list count 100 // Enable counting for ACL 100 Ruijie(config)# ip access-list count 101 // Enable counting for ACL 101 |
Ruijie(config)# int g0/2 // Enter the upstream port on the S5750 Ruijie(config-if-GigabitEthernet 0/2)# ip access-group 100 out // Apply ACL 100 on the outbound direction Ruijie(config-if-GigabitEthernet 0/2)# ip access-group 101 in // Apply ACL 101 on the inbound direction Ruijie(config)# int g0/1 // Enter the downstream port on the S5750 Ruijie(config-if-GigabitEthernet 0/1)# ip access-group 102 in // Apply ACL 102 on the inbound direction Ruijie(config-if-GigabitEthernet 0/1)# ip access-group 103 out // Apply ACL 103 on the outbound direction |
Ruijie(config)# int g1/1 // Enter the downstream port on the S86 Ruijie(config-if-GigabitEthernet 1/1)# ip access-group 100 in // Apply ACL 100 on the inbound direction Ruijie(config-if-GigabitEthernet 1/1)# ip access-group 101 out // Apply ACL 101 on the outbound direction |
Welcome to Ruijie Community (https://community.ruijienetworks.com/) | Powered by Discuz! X3.2 |