-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig_file_desktop_switch
121 lines (121 loc) · 2.37 KB
/
config_file_desktop_switch
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
version 15.2
no service pad
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
no service password-encryption
!
hostname SWITCH_Desktop
!
boot-start-marker
boot-end-marker
!
username siteadmin privilege 15 secret 5 $1$jdO0$npL69Z.0Xrelnv67Dj4hj1
no aaa new-model
!
clock timezone PST -8 0
clock summer-time PDT recurring
system mtu routing 1500
!
ip domain-name event.tech
login block-for 60 attempts 3 within 10
login delay 3
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
lldp run
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport access vlan 10
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/3
switchport access vlan 10
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/4
switchport access vlan 10
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/5
switchport access vlan 20
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/6
switchport access vlan 20
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/7
switchport access vlan 20
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/8
switchport access vlan 20
switchport mode access
spanning-tree portfast edge
!
interface GigabitEthernet0/9
switchport mode trunk
spanning-tree portfast edge
!
interface GigabitEthernet0/10
switchport mode trunk
spanning-tree portfast edge
!
interface Vlan1
ip address dhcp
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip ssh time-out 30
ip ssh authentication-retries 2
ip ssh version 2
!
ip access-list standard SSH
permit 192.168.255.0 0.0.0.255
!
no vstack
!
line con 0
session-timeout 10
logging synchronous
login local
transport preferred none
transport output ssh
line vty 0 4
session-timeout 10
access-class SSH in
logging synchronous
login local
transport preferred ssh
transport input ssh
transport output ssh
line vty 5 15
session-timeout 10
access-class SSH in
logging synchronous
login local
transport preferred ssh
transport input ssh
transport output ssh
!
ntp server time.cloudflare.com source vlan 1
!
crypto key generate rsa modulus 2096
!
end