Introduction
qsd
Commande de base
Switch(config)# hostname SWITCH SWITCH(config)#
Ro(config)# interface FastEthernet 0/1 Ro(config-if)# no shutdown Ro(config-if)# ip address 192.168.1.1 255.255.255.0
Switching
Sw(config)# vlan 10 Sw(config-vlan)# name SERVER Sw(config-vlan)# exit
Sw(config)# interface FastEthernet 0/1 Sw(config-if)# switchport access vlan 10 Sw(config-if)# switchport mode access
Sw(config)# interface FastEthernet 0/1 Sw(config-if)# switchport mode trunk Sw(config-if)# switchport trunk encapsulation dot1q
Routing
Ro(config)# ip route 192.168.1.0 0.0.0.255 1.1.1.2 name VERS_WAN
Services
SNMP v1
Router(config)# access-list 2 permit 192.168.0.1 Router(config)# snmp-server community Finger RO 2 Router(config)# snmp-server host 192.168.0.1 Finger
SNMP v2c
Router(config)# access-list 2 permit 192.168.0.1 Router(config)# snmp-server community Finger RO 2 Router(config)# snmp-server host 192.168.0.1 version 2c Finger
SNMP v3
Router(config)# snmp-server group Finger v3 auth write v1default Router(config)# snmp-server user EyesOfNetwork Finger v3 auth md5 P@ssw0rd Router(config)# snmp-server host 192.168.0.1 version 3 auth EyesOfNetwork
NAT Statique
interface fa 0/1 description LAN ip address 192.168.1.254 255.255.255.0 ip nat inside ! interface fa 0/2 description WAN ip address 200.1.1.254 255.255.255.0 ip nat outside ! ip nat inside source static 192.168.1.1 200.1.1.1 ip nat inside source static 192.168.1.2 200.1.1.2 ip nat inside source static 192.168.1.3 200.1.1.3 etc ...
NAT dynamique
interface fa 0/1 description LAN ip address 192.168.1.254 255.255.255.0 ip nat inside ! interface fa 0/2 description WAN ip address 200.1.1.254 255.255.255.0 ip nat outside ! ip nat pool MAISON 200.1.1.1 200.1.1.3 netmask 255.255.255.0 ip nat inside source list 10 pool MAISON ! access-list 10 permit 192.168.1.1 access-list 10 permit 192.168.1.2 etc ...
PAT (NAT overlay)
interface FastEthernet0/1 description LAN ip address 192.168.1.254 255.255.255.0 ip nat inside ! interface FastEthernet0/2 description WAN ip address 200.1.1.254 255.255.255.0 ip nat outside ! ip nat inside source list 10 interface FastEthernet0/2 overload ! access-list 10 permit 192.168.1.0 0.0.0.255 etc ...
ip dhcp excluded-address 192.168.1.254 ip dhcp excluded-address 192.168.1.1 192.168.1.2 ip dhcp pool FINGER_POOL network 192.168.1.0 255.255.255.0 default-router 192.168.1.254 dns-server 192.168.1.1 192.168.1.2 lease 0 0 10 ip dhcp pool FINGER_POOL_FIXE_90 network 192.168.1.90 255.255.255.0 hardware-address 000b.6b52.3268 default-router 192.168.1.254 dns-server 192.168.1.1 192.168.1.2 lease 0 0 10
Merci de votre soutien et de votre fidélité ! Ce site existe grâce à vous et je ne vous remercierais jamais assez !