doc:appunti:hardware:cisco_router
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:hardware:cisco_router [2012/08/03 18:24] – [Configurazione server DHCP] niccolo | doc:appunti:hardware:cisco_router [2016/09/21 12:59] – [SNMP] niccolo | ||
---|---|---|---|
Line 121: | Line 121: | ||
Vedere **[[http:// | Vedere **[[http:// | ||
- | In questo esempio si configura un pool pari a tutta la ntework **192.168.2.0/ | + | In questo esempio si configura un pool pari a tutta la ntework **192.168.2.0/ |
< | < | ||
#configure terminal | #configure terminal | ||
- | (config)#ip dhcp excluded-address 192.168.2.1 | + | (config)#ip dhcp excluded-address 192.168.2.1 |
- | (config)#ip dhcp pool CLIENT | + | (config)#ip dhcp pool DHCP-POOL |
(dhcp-config)# | (dhcp-config)# | ||
(dhcp-config)# | (dhcp-config)# | ||
- | (dhcp-config)# | + | (dhcp-config)# |
(dhcp-config)# | (dhcp-config)# | ||
(dhcp-config)# | (dhcp-config)# | ||
Line 154: | Line 154: | ||
Notare che nell' | Notare che nell' | ||
+ | |||
+ | |||
+ | ====== Qualità connessione DSL ====== | ||
+ | |||
+ | Come valutare la qualità del segnale ADSL su un Cisco 877: | ||
+ | |||
+ | < | ||
+ | Router#show dsl interface ATM 0 | ||
+ | ATM0 | ||
+ | Alcatel 20190 chipset information | ||
+ | ATU-R (DS) ATU-C (US) | ||
+ | Modem Status: | ||
+ | DSL Mode: ITU G.992.1 (G.DMT) Annex A | ||
+ | ITU STD NUM: | ||
+ | Vendor ID: ' | ||
+ | Vendor Specific: 0x0000 | ||
+ | Vendor Country: | ||
+ | Chip ID: C196 (0) | ||
+ | DFE BOM: | ||
+ | Capacity Used: | ||
+ | Noise Margin: | ||
+ | Output Power: | ||
+ | Attenuation: | ||
+ | Defect Status: | ||
+ | Last Fail Code: None | ||
+ | Watchdog Counter: 0xE0 | ||
+ | Watchdog Resets: 0 | ||
+ | Selftest Result: 0x00 | ||
+ | Subfunction: | ||
+ | Interrupts: | ||
+ | PHY Access Err: 0 | ||
+ | Activations: | ||
+ | LED Status: | ||
+ | LED On Time: 100 | ||
+ | LED Off Time: 100 | ||
+ | Init FW: | ||
+ | Operation FW: AMR-3.0.014.bin | ||
+ | FW Source: | ||
+ | FW Version: | ||
+ | |||
+ | | ||
+ | Speed (kbps): | ||
+ | Cells: | ||
+ | Reed-Solomon EC: 8 0 | ||
+ | CRC Errors: | ||
+ | Header Errors: | ||
+ | Total BER: 0E-0 0E-0 | ||
+ | Leakage Average BER: 0E-0 0E-0 | ||
+ | ATU-R (DS) ATU-C (US) | ||
+ | Bitswap: | ||
+ | Bitswap success: | ||
+ | Bitswap failure: | ||
+ | |||
+ | LOM Monitoring : Disabled | ||
+ | </ | ||
+ | |||
+ | Si vedono i parametri **downstream** (download) e **upstram** (upload), il valore di **Noise Margin** (detto anche rapporto segnale/ | ||
+ | |||
+ | Questa una tabella esplicativa del **rapporto segnale/ | ||
+ | |||
+ | ^ SNR Signal/ | ||
+ | ^ 6dB or below | Noise margin is bad, it will experience no synch or intermittent synch problems | ||
+ | ^ 7dB-10dB | ||
+ | ^ 11dB-20dB | ||
+ | ^ 20dB-28dB | ||
+ | ^ 29dB or above | Outstanding | ||
+ | |||
+ | L' | ||
+ | |||
+ | ^ Attenuation | ||
+ | ^ 20-30 | Excellent | ||
+ | ^ 30-40 | Very Good | | ||
+ | ^ 40-60 | Average | ||
+ | |||
+ | La **velocità di allineamento** della portante è indicata da **Speed (kbps)** **Interleave**, | ||
+ | |||
+ | Altro comando per verificare la velocità di allineamento in download: | ||
+ | |||
+ | < | ||
+ | Router#show interfaces ATM 0 | ||
+ | ATM0 is up, line protocol is up | ||
+ | Hardware is MPC ATMSAR (with Alcatel ADSL Module) | ||
+ | MTU 4470 bytes, sub MTU 4470, BW 736 Kbit, DLY 500 usec, | ||
+ | | ||
+ | Encapsulation ATM, loopback not set | ||
+ | Encapsulation(s): | ||
+ | 10 maximum active VCs, 1024 VCs per VP, 2 current VCCs | ||
+ | VC Auto Creation Disabled. | ||
+ | VC idle disconnect time: 300 seconds | ||
+ | Last input never, output 00:00:01, output hang never | ||
+ | Last clearing of "show interface" | ||
+ | Input queue: 0/224/0/0 (size/ | ||
+ | Queueing strategy: Per VC Queueing | ||
+ | 5 minute input rate 24000 bits/sec, 0 packets/sec | ||
+ | 5 minute output rate 0 bits/sec, 0 packets/sec | ||
+ | 43749 packets input, 41209447 bytes, 0 no buffer | ||
+ | | ||
+ | 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort | ||
+ | 28917 packets output, 2283137 bytes, 0 underruns | ||
+ | 0 output errors, 0 collisions, 0 interface resets | ||
+ | 0 output buffer failures, 0 output buffers swapped out | ||
+ | </ | ||
+ | |||
+ | Il valore **BW 736 Kbit** indica che la portante si è allineata a 736 kbit (upload). | ||
+ | |||
+ | ====== VLAN ====== | ||
+ | |||
+ | Il router Cisco 877 ha 4 porte Ethernet che possono essere configurate in VLAN. L' | ||
+ | |||
+ | In questo esempio si configura la quarta porta **FastEthernet3** su una VLAN separata, con un diverso indirizzo IP, ecc. | ||
+ | |||
+ | Anzitutto si definisce la Vlan2: | ||
+ | |||
+ | < | ||
+ | Router#vlan database | ||
+ | Router(vlan)# | ||
+ | Router(vlan)# | ||
+ | VLAN ISL Id: 1 | ||
+ | Name: default | ||
+ | Media Type: Ethernet | ||
+ | VLAN 802.10 Id: 100001 | ||
+ | State: Operational | ||
+ | MTU: 1500 | ||
+ | Translational Bridged VLAN: 1002 | ||
+ | Translational Bridged VLAN: 1003 | ||
+ | |||
+ | VLAN ISL Id: 2 | ||
+ | Name: VLAN0002 | ||
+ | Media Type: Ethernet | ||
+ | VLAN 802.10 Id: 100002 | ||
+ | State: Operational | ||
+ | MTU: 1500 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Quindi si configura la porta Ethernet e l' | ||
+ | |||
+ | < | ||
+ | interface FastEthernet3 | ||
+ | | ||
+ | ... | ||
+ | interface Vlan2 | ||
+ | ip address 172.16.1.1 255.255.255.0 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | **ATTENZIONE**: | ||
+ | |||
+ | ====== SNMP ====== | ||
+ | |||
+ | Esempio per abilitare il monitoraggio via SNMP, community **public** in sola lettura, filtrato con una access list: | ||
+ | |||
+ | < | ||
+ | Router# | ||
+ | Router(config)# | ||
+ | Router(config)# | ||
+ | </ | ||
+ | |||
+ | ====== Backup/ | ||
+ | |||
+ | Predisporre una connessione LAN tra il router ed un host con un server TFTP (es. **tftpd-hpa** in Debian). Viene chiesto l' | ||
+ | |||
+ | < | ||
+ | copy run tftp | ||
+ | </ | ||
+ | |||
+ | La procedura inversa: | ||
+ | |||
+ | < | ||
+ | copy tftp run | ||
+ | copy run start | ||
+ | </ |
doc/appunti/hardware/cisco_router.txt · Last modified: 2019/02/02 14:20 by niccolo