INTRODUÇÃO AO JUNOS
Agosto de 2013
WZTECH Networks
Parte I
[email protected]
CONTEUDO PROPOSTO:
Switches
- JUNOS Operation System
- Product Registration, Support, Technical Cases, Customer Support Cases
- Console Cable (9600, 8, None, 1, None)
- Arquitetura de Hardware – Switches EX
- Shell and CLI
- Operational Mode: Basic Troubleshooting (show, request, file, ping, trace, telnet and ssh)
- Software Update - Local or FTP e USB devices
- Configuration Mode: groups, system, interfaces, routing-options, protocols, firewall
- annotate, delete, set, insert, replace, pipe, match, etc.
- Events Options
- Syslog, Services, Users, Classes, Basic Configuration and NTP
- Interface Configuration: Ethernet and Loopback (FPC, PIC and PORT)
- Ethernet Vlans
- Routed Vlan Interfaces
- Link Aggregation
- Spanning Tree
- RIB e FIB
- MAC Address
- Interfaces Logical Units - Family IPv4 and IPv6
- Static Routes: IPv4 and IPv6
- Dynamic Routing Protocols
- OSPF (IPv4 and IPv6)
- BGP (IPv4 and IPv6)
- Policy Routing (Import and Export) IPv4 and IPv6
- Firewall Filters: IPv4 and IPv6
- Bandwidth Policers
- Monitoring and Traceroptions
- SNMP
WZTECH and JUNIPER Networks
- WZTECH Networks
- http://www.wztech.com.br/
- J-PARTNER ELITE
- JUNIPER Networks
- http://www.juniper.net/
- Routers (M, MX), Switches (EX), Firewalls (SRX), SSL VPN (MAG) and Wireless
EX SERIES PORTFOLIO
Performance
Core
EX4550 EX8200
EX4500
Access
EX6200
EX4300
EX4200
EX3300 Modular
EX2200
EX2200-C Hardware Resiliency
Number of Ports
= Virtual Chassis
PRODUTOS EX
EX8208 EX4550
Separação Entre Planos de Controle e de Encaminhamento
RE CLI, SSH, J-WEB (FXP0)
Policy IMPORT Policy EXPORT
CONTROL PLANE
BGP, OSPF Loopback (lo0)
NTP, DNS, ICMP
I/O I/O
Forwarding Plane
Packets IN Packets OUT
Firewall Filter IN Firewall Filter Out
ASIC
PFE
Product Registration, Support, Technical Cases and Tips
- https://www.juniper.net/customers/support/
- https://tools.juniper.net/entitlement/setupAccountInfo.do
- Registration – SERIAL NUMBER
- JUNIPER J-CARE Next Day Support (PAR-ND) Contract
- Software Downloads (DOMESTIC or WW)
- Create a New Case:
• Technical Support Case
• Customer Care Case
- http://www.juniper.net/support/requesting-support.html#latin-america
- http://tools.juniper.net/SerialNumberEntitlementSearch/
Console Cable (9600, 8, None, 1, None)
Out-of-Band
• PROLIFIC DRIVER
• PUTTY (LOGS)
• BOOT Sequence
• Password Recovery
• USB (Storage / Snapshot)
Shell and CLI (Amnesiac x Root)
- Amnesiac (ttyd0)
- Login:
- Root (sem senha)
- Shell % (nao e recomendado utilizar o shell ... root nao faz login na caixa)
- Comando: cli
- Modo Operacional > configure (depende da autorizacao do usuario)
- Modo de Configuração # exit
- Modo de Configuração # run (palavra chave que coloca o usuario no modo
operacional)
- > show configuration (ativa)
- # show (editor)
JUNOS CLI MODES
• Operational mode:
– Monitor and troubleshoot the software, network connectivity, and router
hardware
The > character identifies
lab@host> operational mode
• Configuration mode:
– Configure the router, including interfaces, general routing information,
routing protocols, user access, and system hardware properties
[edit]
lab@host# The # character identifies
configuration mode
Operational Mode
- Show (chassis, route, ethernet-switching-table, interfaces .. terse .. extensive ..)
- Request (system)
- File (show, delete, rename)
- SSH / Telnet / Ping / Mtrace / Traceroute
- Op (Scripts)
- Barra de Espaço e TAB (auto complementam)
- set (date,cli)
- Help (reference, topic, apropus)
- ? (Interrogação junto ou não de uma letra)
- PIPE | save (local, ftp, scp) | match ... | no-more | ...
Operational Mode
Switch > show chassis routing-engine
Switch > show chassis environment
Switch > show chassis hardware detail
Switch > show chassis temperature-thresholds
Switch > show chassis alarms
Switch > show interfaces terse
Switch > show system users
Switch > request system logout ?
Switch > show system uptime
Switch > request system snapshot ?
Operational Mode
Switch > show route table inet.0
Switch > show route table inet6.0 | match 2001:2b00:100::a
Switch > show ospf neighbor
Switch > show bgp summary
Switch > show log messages (/var/log/messages)
Switch > monitor start messages
Switch > monitor interface fe-0/0/0
Switch > monitor traffic interface fe-0/0/0
Switch > monitor stop
Switch > file delete /var/log/messages (ou clear log messages)
Switch > clear statistics interface fe-0/0/0
Operational Mode
Switch > show route advertising-protocol bgp 189.6.5.4
Switch > show route receive-protocol bgp 187.6.5.4
Switch > show route protocol ospf (show route table inet.0 protocol ospf)
Switch > show ipv6 neighbors
Switch > show route protocol bgp extensive
Switch > show route protocol bgp community-name EMBRATEL-IPV4
Switch > show route protocol bgp | match 143.107.253.0
Switch > show interfaces ge-0/0/0 extensive
Switch > show arp no-resolve
Switch > show ethernet-switching table
Operational Mode
Switch > show version detail
Switch > show cli history
Switch > show log interactive-commands
Switch > set cli screen-length 100
Switch > show spanning-tree bridge
Switch > show system processes detail
Switch > ping 143.107.253.5 rapid count 1000
Switch > traceroute monitor 143.107.253.5 (MTR)
Switch > traceroute monitor 143.107.253.5 no-resolve
Switch > ping ipv6.br inet
Switch > start shell user giuliano (CUIDADO !!!)
Operational Mode
Operational Mode
Operational Mode
Operational Mode
Operational Mode
Operational Mode
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
• Compare active and historical configurations
lab@host> show configuration | compare rollback number
lab@host> show configuration | compare filename
• Compare arbitrary files:
lab@host> file compare files filename-1 filename-2
CONFIGURATION MODE
CONFIGURATION MODE
ACTIVE AND CANDIDATE CONFIGURATION
CONFIGURATION HISTORY
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
CONFIGURATION MODE
- Mostrar a configuracao ATIVA
lab@host> show configuration
- Mostrar a configuracao CANDIDATA (IDENTADO)
lab@host# show
- Mostrar a configuracao CANDIDATA
lab@host# show | display set | no-more
lab@host# show | display set | no-more | save (/var/home/user)
lab@host# show | display set | no-more | save ftp://user@pass:192.168...
lab@host# load set terminal (copy + paste no proprio terminal)
Ctrl + D