-
-
conf t
-
int fa 0/1
-
switchport mode access
-
switchport access vlan 101
-
end
-
write
-
-
# For IOS devices you might use the following to generate syslog entries for logins: login block-for 120 attempts 4 within 120 login on-failure log login on-success log # to generate syslog entries for the executed commands: archive log config logging enable notify syslog hidekeys
-
- Catalyst Cisco 6509 or 3750: switch#configure terminal switch(config)#monitor session 1 source interface GigabitEthernet x/x switch(config)#monitor session 1 destination interface GigabitEthernet x/x - Catalyst Cisco 3500XL: switch#configure terminal switch(config)#interface FastEthernet x/x switch(config-if)#port monitor FastEthernet x/x - Firewall Juniper/Netscreen 25 set mirror port source interface1 destination interface2
-
Prevent flooding
Switch# conf t Switch1(config)# interface ethernet 0/4 Switch1(config-if)# port secure max-mac-count 100
-
# Sur linux pour avoir une interface virtuelle qui tag sur le vlan 2 et attachée à eth0 # Nécessite le package vlan (apt-get install vlan, yum install vlan, ...) ifconfig eth0.2 192.168.2.1 # Sur cisco, pour autoriser les vlan 2 a 4 sur l'interface 0/1 conf t int fa 0/1 switchport mode trunk switchport trunk allowed vlan 2-4 end write
“cisco” related tags
spirit’s tags
access apache apache2 apt arguments auditd auth awk backup backups bandwidth bash bridge cache cd charset cisco commands conversion cron css date debian debug default diff directories directory distance dns dom du eth ethernet excel exclude files find firefox flash forms function hacks headers history hosts htaccess html http https ie ifconfig images input ip javascript jobs kill latitude linux log logging longitude mac mail maps merge monitoring mysql network nginx openssl packages performance performances perl php red hat regex restore root route rpm script security server shell ssh ssl svn switch syslog tail trunk unix virtualhost vlan vmware windows yum