Esse artigo foi homologado no equipamento ASR 1001-X, na versão IOS XR, o uso em uma versão diferente pode não resultar da mesma forma.
| Interface |
Tipo |
Velocidade |
| CON (RJ45 Console) |
Serial |
9600 |
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
enable
conf
hostname 001-EMPRESA-POP-ROUTER
commit
end
!
enable
conf
clock timezone BRT -3
!clock timezone AMT -4
!clock timezone ACT -5
clock set 09:30:00 28 Oct 2025
ntp server 2001:12ff::8
ntp server 2001:12f8:9:1::8
ntp server 200.160.0.8
ntp server 200.189.40.8
commit
end
!
enable
conf
enable secret Smart3030#@
commit
end
!
enable
conf
aaa authentication login default local
aaa authorization exec default local
commit
end
!
enable
conf
username smartlayer secret SenhaExemplo321#@!
username smartlayer privilege 15
!read-only
!username smartlayer privilege 1
commit
end
!
enable
conf
crypto key generate rsa
ssh server v2
ssh server port 64777
ssh ipv6 server enable
ssh ipv6 server port 64777
sftp-server enable
!
line vty 0 4
exec-timeout 240
transport input ssh
!
commit
end
!
enable
conf
interface Loopback0
description LOOPBACK-PRIVADA
ipv4 address 10.64.255.1 255.255.255.255
ipv6 address fd00:1:EE:1:ffff::1/128
!
interface Loopback1
description LOOPBACK-PUBLICA
ipv4 address 192.0.2.1 255.255.255.255
ipv6 address 2001:db8::1/128
!
commit
end
!
enable
conf
snmp-server
contact NOME-DA-EMPRESA
location NOME-DO-POP
!
group SNMP3 v3 priv
read-view default
!
user nome-empresa SNMP3 v3
auth sha SenhaExemplo321#@!
priv aes 128 SenhaExemplo321#@!
!
commit
end
!
enable
conf
class-map match-any COPP-FRAGMENT
match protocol fragment
class-map match-any COPP-BFD
match protocol bfd
class-map match-any COPP-BGP
match protocol bgp
class-map match-any COPP-DNS
match protocol domain
class-map match-any COPP-ICMP
match protocol icmp
class-map match-any COPP-LDP
match protocol ldp
class-map match-any COPP-NTP
match protocol ntp
class-map match-any COPP-OSPF
match protocol ospf
class-map match-any COPP-RADIUS
match protocol radius
class-map match-any COPP-SNMP
match protocol snmp
class-map match-any COPP-SSH-CLIENT
match protocol ssh
class-map match-any COPP-SSH-SERVER
match protocol ssh
class-map match-any COPP-ARP
match protocol arp
class-map match-any COPP-IPV4-FIB-MISS
match access-group ipv4 ACL-FIB-MISS
class-map match-any COPP-IPV4-MCAST-FIB-MISS
match access-group ipv4 ACL-MCAST-MISS
class-map match-any COPP-IPV4-TTL-EXPIRE
match protocol ttl-exceeded
class-map match-any COPP-IPV6-TTL-EXPIRE
match protocol ipv6-ttl-exceeded
class-map match-any COPP-IPV6-FIB-MISS
match access-group ipv6 ACL-IPV6-FIB-MISS
class-map match-any COPP-IPV6-ND-MISS
match protocol nd
class-map match-any COPP-ARP-MISS
match protocol arp
class-map match-any COPP-SYSLOG
match protocol syslog
class-map match-any COPP-BGPV6
match protocol bgp
class-map match-any COPP-OSPFV3
match protocol ospfv3
class-map match-any COPP-ICMPV6
match protocol ipv6-icmp
class-map match-any COPP-DNSV6
match protocol domain
class-map match-any COPP-SSHV6-SERVER
match protocol ssh
class-map match-any COPP-NETSTREAM
match protocol netflow
class-map match-any COPP-SNMPV6
match protocol snmp
class-map match-any COPP-RA
match protocol ipv6-router-advertisement
class-map match-any COPP-RS
match protocol ipv6-router-solicitation
class-map match-any COPP-NS
match protocol ipv6-neighbor-solicitation
class-map match-any COPP-NA
match protocol ipv6-neighbor-advertisement
class-map match-any COPP-ICMP-BROADCAST
match protocol icmp
!
policy-map type qos COPP-POLICY
class COPP-FRAGMENT
police rate 1 mbps burst 2048 bytes
class COPP-BFD
police rate 1 mbps burst 2048 bytes
class COPP-BGP
police rate 1 mbps burst 2048 bytes
class COPP-DNS
police rate 1 mbps burst 2048 bytes
class COPP-ICMP
police rate 1 mbps burst 2048 bytes
class COPP-LDP
police rate 1 mbps burst 2048 bytes
class COPP-NTP
police rate 1 mbps burst 2048 bytes
class COPP-OSPF
police rate 1 mbps burst 2048 bytes
class COPP-RADIUS
police rate 1 mbps burst 2048 bytes
class COPP-SNMP
police rate 4 mbps burst 800000 bytes
class COPP-SSH-CLIENT
police rate 1 mbps burst 2048 bytes
class COPP-SSH-SERVER
police rate 1 mbps burst 2048 bytes
class COPP-ARP
police rate 4 mbps burst 2048 bytes
class COPP-IPV4-FIB-MISS
police rate 1 mbps burst 2048 bytes
class COPP-IPV4-MCAST-FIB-MISS
police rate 1 mbps burst 2048 bytes
class COPP-IPV4-TTL-EXPIRE
police rate 1 mbps burst 2048 bytes
class COPP-IPV6-TTL-EXPIRE
police rate 1 mbps burst 2048 bytes
class COPP-IPV6-FIB-MISS
police rate 1 mbps burst 2048 bytes
class COPP-IPV6-ND-MISS
police rate 1 mbps burst 2048 bytes
class COPP-ARP-MISS
police rate 1 mbps burst 2048 bytes
class COPP-SYSLOG
police rate 1 mbps burst 2048 bytes
class COPP-BGPV6
police rate 1 mbps burst 2048 bytes
class COPP-OSPFV3
police rate 1 mbps burst 2048 bytes
class COPP-ICMPV6
police rate 1 mbps burst 2048 bytes
class COPP-DNSV6
police rate 1 mbps burst 2048 bytes
class COPP-SSHV6-SERVER
police rate 1 mbps burst 2048 bytes
class COPP-NETSTREAM
police rate 2 mbps burst 200 bytes
class COPP-SNMPV6
police rate 1 mbps burst 2048 bytes
class COPP-RA
police rate 1 mbps burst 2048 bytes
class COPP-RS
police rate 1 mbps burst 2048 bytes
class COPP-NS
police rate 4 mbps burst 2048 bytes
class COPP-NA
police rate 1 mbps burst 2048 bytes
class COPP-ICMP-BROADCAST
police rate 1 mbps burst 2048 bytes
class class-default
police rate 1 mbps burst 2048 bytes
!
control-plane
service-policy input COPP-POLICY
!
commit
end
!