-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1. Basic IOS XE Config
139 lines (139 loc) · 3.05 KB
/
1. Basic IOS XE Config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
!
! This contains some of my favorite aliases,
! enables SYSLOG, disables unneeded services,
! sets up config archiving, DNS & NTP & Type 6
! AES Password Encryption
!
! Typically when setting up a new IOS XE box I copy paste this whole script.
!
!
! DO NOW OR BE DISAPPOINTED THAT SHIT BREAKS
!
! Assign an IP Address and Default Gateway
!
!
!
!
!
!
term width 130
conf t
alias exec ct conf t
alias exec sr sho runn
alias exec sra show runn all
alias exec srb show runn brief
alias exec srl sho runn linenum
alias exec sdc show derived-config
alias exec uptime show version | incl uptime|restarted
alias exec cc clear counters
alias exec sa show access-session
alias exec smka show mka session
alias exec si sh ip route
alias exec sl show logging
alias exec sna show ntp assoc
alias exec snad show ntp assoc detail
alias exec sns show ntp status
alias exec sri show run | include
alias exec siib show ip interface brief
alias exec sib show ip bgp
alias exec sibs show ip bgp summary
alias exec sibn show ip bgp neighbor
alias exec sio show ip ospf
alias exec sion show ip ospf neighbor
alias exec sioi show ip ospf interface
alias exec siod show ip ospf database
alias exec siet show ip eigrp topology
alias exec siei show ip eigrp interface
alias exec sien show ip eigrp neighbor
alias exec sird show ip rip database
alias exec sc sho conf
alias exec tr trace
alias exec sip sho ip route
alias exec wm copy runn start
alias exec nda no debug all
alias exec smaci show mac address-table interface
alias exec clb clear log
alias exec dr debug radius
alias exec tm term mon
alias exec d1x debug dot1x all
alias exec sid show interface description
no logging console
logging count
logging history informational
logging origin-id hostname
logging buffered 40960
logging YOUR.SYSLOG.SERVER.IP
logging on
!
password encryption aes
key config-key password-encrypt ENTER-IN-A-SUPER-SECRET-PASSWORD
!
service nagle
service internal
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone year
service timestamps log datetime msec localtime show-timezone year
no service config
no service pad
no service finger
no service tcp-small-servers
no service udp-small-servers
no ip bootp server
parser config cache interface
exception crashinfo max files 3
!
!
ip options drop
ip dhcp bootp ignore
ip tftp blocksize 8192
no ip source-route
no ip identd
no ip finger
no ip source-route
no ip http server
no ip http secure-server
!
!
configuration mode exclusive auto
do mkdir archived-configs
!
no archive
archive
log config
logging enable
logging size 300
notify syslog contenttype plaintext
path flash:archived-configs/archived-configs
maximum 14
write-memory
time-period 60
!
cdp run
no vstack
no logging console
!
!
!
!
!
ip domain name YOURDOMAIN.NET
ip name-server 8.8.8.8
ip name-server 8.8.4.4
!
clock timezone EST -5
clock summer-time EDT recurring
ntp server pool.ntp.org
ntp server north-america.pool.ntp.org
ntp server south-america.pool.ntp.org
ntp server europe.pool.ntp.org
ntp server us.pool.ntp.org
end
!
!
!
!
!
!
!
!