WS-C2960X-48TS-L#show runBuilding configuration...Current configuration : 5164 bytes!! Last configuration change at 18:04:32 UTC Sun Mar 8 2009 by -! NVRAM config last updated at 18:04:27 UTC Sun Mar 8 2009 by -!version 15.2no service padservice timestamps debug datetime msecservice timestamps log datetime msecservice password-encryption!hostname WS-C2960X-48TS-L!boot-start-markerboot-end-marker!enable secret --!username --username --aaa new-model!!aaa authentication login default local!!!!!!aaa session-id commonclock timezone UTC 1 0switch 4 provision ws-c2960x-48ts-l!!no ip domain-lookupip domain-name ad01.sevtp mode transparent!!!!!!!!spanning-tree mode pvstspanning-tree extend system-id!!!!vlan internal allocation policy ascending!vlan 20 name INTERNET!vlan 30 name user!vlan 40 name cctv!vlan 50 name wifi!vlan 60 name mgmt!vlan 70 name server!!!!!!!!!!!!interface FastEthernet0 no ip address shutdown!interface GigabitEthernet4/0/1 description pfsense switchport trunk allowed vlan 1,20,30,40,50,60,70 switchport mode trunk!interface GigabitEthernet4/0/2 description larm switchport access vlan 30 switchport mode access!interface GigabitEthernet4/0/3 description nas switchport access vlan 70 switchport mode access!interface GigabitEthernet4/0/4 switchport access vlan 20 switchport mode access!interface GigabitEthernet4/0/5 description laptop_tmp switchport access vlan 50 switchport mode access!interface GigabitEthernet4/0/6 switchport mode access!interface GigabitEthernet4/0/7 switchport access vlan 50 switchport mode access!interface GigabitEthernet4/0/8 switchport mode access!interface GigabitEthernet4/0/9 switchport mode access!interface GigabitEthernet4/0/10 switchport mode access!interface GigabitEthernet4/0/11 switchport mode access!interface GigabitEthernet4/0/12 description vlan20 switchport access vlan 20 switchport mode access!interface GigabitEthernet4/0/13 description vlan30 switchport access vlan 30 switchport mode access!interface GigabitEthernet4/0/14 description vlan40 switchport access vlan 40 switchport mode access!interface GigabitEthernet4/0/15 description vlan50 switchport access vlan 50 switchport mode access!interface GigabitEthernet4/0/16 description vlan60 switchport access vlan 60 switchport mode access!interface GigabitEthernet4/0/17 switchport mode access!interface GigabitEthernet4/0/18 switchport mode access!interface GigabitEthernet4/0/19 switchport mode access!interface GigabitEthernet4/0/20 switchport mode access!interface GigabitEthernet4/0/21 switchport mode access!interface GigabitEthernet4/0/22 switchport mode access!interface GigabitEthernet4/0/23 switchport mode access!interface GigabitEthernet4/0/24 switchport mode access!interface GigabitEthernet4/0/25 switchport mode access!interface GigabitEthernet4/0/26 switchport mode access!interface GigabitEthernet4/0/27 switchport mode access!interface GigabitEthernet4/0/28 switchport mode access!interface GigabitEthernet4/0/29 switchport mode access!interface GigabitEthernet4/0/30 switchport mode access!interface GigabitEthernet4/0/31 switchport mode access!interface GigabitEthernet4/0/32 switchport mode access!interface GigabitEthernet4/0/33 switchport mode access!interface GigabitEthernet4/0/34 switchport mode access!interface GigabitEthernet4/0/35 switchport mode access!interface GigabitEthernet4/0/36 switchport mode access!interface GigabitEthernet4/0/37 switchport mode access!interface GigabitEthernet4/0/38 switchport mode access!interface GigabitEthernet4/0/39 switchport mode access!interface GigabitEthernet4/0/40 switchport mode access!interface GigabitEthernet4/0/41 switchport mode access!interface GigabitEthernet4/0/42 switchport mode access!interface GigabitEthernet4/0/43 switchport mode access!interface GigabitEthernet4/0/44 switchport mode access!interface GigabitEthernet4/0/45 switchport mode access!interface GigabitEthernet4/0/46 switchport mode access!interface GigabitEthernet4/0/47 switchport mode access!interface GigabitEthernet4/0/48 switchport access vlan 60 switchport mode access!interface GigabitEthernet4/0/49 switchport trunk allowed vlan 1,20,30,40,50,60 switchport mode trunk!interface GigabitEthernet4/0/50!interface GigabitEthernet4/0/51!interface GigabitEthernet4/0/52!interface Vlan1 ip address 192.168.20.6 255.255.255.0!interface Vlan30 ip address 192.168.30.4 255.255.255.0!interface Vlan60 description mgmt ip address 192.168.60.4 255.255.255.0!ip default-gateway 192.168.60.1ip http serverip http authentication localno ip http secure-server!ip ssh authentication-retries 2ip ssh version 2!!!!!!line con 0 exec-timeout 30 0line vty 0 4 exec-timeout 0 0 privilege level 15 transport input sshline vty 5 15 exec-timeout 60 0 transport input ssh!ntp loggingntp server 192.168.60.1end
Don't use floating rules unless you absolutely have to.Put the rules where they belong, on the actual interface.
Quote from: Demusman on December 16, 2022, 11:33:43 pmDon't use floating rules unless you absolutely have to.Put the rules where they belong, on the actual interface.Interface groups would be the better way to go if you have multiple interfaces that need the same rules