Difference between revisions of "Voip H5"
From Teknologisk videncenter
(→R1) |
(→R2) |
||
Line 208: | Line 208: | ||
=== R2 === | === R2 === | ||
<source lang="cli"> | <source lang="cli"> | ||
+ | Building configuration... | ||
+ | |||
+ | Current configuration : 1680 bytes | ||
+ | ! | ||
+ | ! No configuration change since last restart | ||
+ | ! | ||
version 12.4 | version 12.4 | ||
service timestamps debug datetime msec | service timestamps debug datetime msec | ||
service timestamps log datetime msec | service timestamps log datetime msec | ||
service password-encryption | service password-encryption | ||
− | + | ! | |
hostname R2 | hostname R2 | ||
− | + | ! | |
boot-start-marker | boot-start-marker | ||
boot-end-marker | boot-end-marker | ||
− | + | ! | |
enable secret 5 $1$l0FZ$KDWuxPIGg4RR3ai.m.3N30 | enable secret 5 $1$l0FZ$KDWuxPIGg4RR3ai.m.3N30 | ||
− | + | ! | |
no aaa new-model | no aaa new-model | ||
− | + | ! | |
resource policy | resource policy | ||
− | + | ! | |
ip cef | ip cef | ||
− | + | ! | |
+ | ! | ||
no ip dhcp use vrf connected | no ip dhcp use vrf connected | ||
ip dhcp excluded-address 192.168.23.1 192.168.23.10 | ip dhcp excluded-address 192.168.23.1 192.168.23.10 | ||
ip dhcp excluded-address 192.168.24.1 192.168.24.10 | ip dhcp excluded-address 192.168.24.1 192.168.24.10 | ||
− | + | ! | |
ip dhcp pool data | ip dhcp pool data | ||
network 192.168.23.0 255.255.255.0 | network 192.168.23.0 255.255.255.0 | ||
default-router 192.168.23.1 | default-router 192.168.23.1 | ||
dns-server 172.16.4.77 | dns-server 172.16.4.77 | ||
− | + | ! | |
ip dhcp pool tele | ip dhcp pool tele | ||
network 192.168.24.0 255.255.255.0 | network 192.168.24.0 255.255.255.0 | ||
Line 240: | Line 247: | ||
dns-server 172.16.4.77 | dns-server 172.16.4.77 | ||
option 150 ip 192.168.22.100 | option 150 ip 192.168.22.100 | ||
− | + | ! | |
+ | ! | ||
ip domain name MercantecVoice.dk | ip domain name MercantecVoice.dk | ||
ip ssh time-out 60 | ip ssh time-out 60 | ||
ip ssh version 2 | ip ssh version 2 | ||
− | + | ! | |
+ | ! | ||
+ | ! | ||
voice-card 0 | voice-card 0 | ||
− | + | ! | |
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
username admin privilege 14 secret 5 $1$5nNp$C5/UJLR9I/dYB47w7Exp80 | username admin privilege 14 secret 5 $1$5nNp$C5/UJLR9I/dYB47w7Exp80 | ||
− | + | ! | |
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
interface FastEthernet0/0 | interface FastEthernet0/0 | ||
no ip address | no ip address | ||
duplex auto | duplex auto | ||
speed auto | speed auto | ||
− | + | ! | |
interface FastEthernet0/0.2 | interface FastEthernet0/0.2 | ||
encapsulation dot1Q 2 | encapsulation dot1Q 2 | ||
ip address 192.168.23.1 255.255.255.0 | ip address 192.168.23.1 255.255.255.0 | ||
− | + | ! | |
interface FastEthernet0/0.10 | interface FastEthernet0/0.10 | ||
encapsulation dot1Q 10 | encapsulation dot1Q 10 | ||
ip address 192.168.24.1 255.255.255.0 | ip address 192.168.24.1 255.255.255.0 | ||
− | + | ! | |
interface FastEthernet0/1 | interface FastEthernet0/1 | ||
no ip address | no ip address | ||
duplex auto | duplex auto | ||
speed auto | speed auto | ||
− | + | ! | |
interface Serial0/2/0 | interface Serial0/2/0 | ||
+ | bandwidth 8000 | ||
ip address 192.168.1.2 255.255.255.252 | ip address 192.168.1.2 255.255.255.252 | ||
− | + | no fair-queue | |
+ | ! | ||
router eigrp 1111 | router eigrp 1111 | ||
network 192.168.1.0 0.0.0.3 | network 192.168.1.0 0.0.0.3 | ||
Line 275: | Line 309: | ||
network 192.168.24.0 | network 192.168.24.0 | ||
no auto-summary | no auto-summary | ||
− | + | ! | |
+ | ! | ||
+ | ! | ||
ip http server | ip http server | ||
no ip http secure-server | no ip http secure-server | ||
− | + | ! | |
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
control-plane | control-plane | ||
− | + | ! | |
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | alias exec r1 telnet 192.168.1.1 | ||
+ | ! | ||
line con 0 | line con 0 | ||
line aux 0 | line aux 0 | ||
Line 286: | Line 338: | ||
password 7 070C285F4D06 | password 7 070C285F4D06 | ||
login | login | ||
− | + | ! | |
scheduler allocate 20000 1000 | scheduler allocate 20000 1000 | ||
end | end | ||
Line 292: | Line 344: | ||
</source> | </source> | ||
− | |||
=== SW1 === | === SW1 === |
Revision as of 06:59, 18 May 2010
Voip
Vores interne adresser er NAT'ed til det yder net dynamisk.
R1
Skolens DHCP server gav Interface FastEthernet0/1 assigned DHCP address 192.168.138.157, mask 255.255.255.0, hostname R1
Building configuration...
Current configuration : 4304 bytes
!
! Last configuration change at 09:27:08 UTC Tue May 11 2010 by admin
! NVRAM config last updated at 08:21:26 UTC Tue May 11 2010
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$bMDv$QL/iMZKsHEc34OD.3v1Ye1
!
aaa new-model
!
!
!
aaa session-id common
!
resource policy
!
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.22.1 192.168.22.4
!
ip dhcp pool tele
network 192.168.21.0 255.255.255.0
default-router 192.168.21.1
dns-server 172.16.4.77
option 150 ip 192.168.22.2
!
ip dhcp pool data
network 192.168.22.0 255.255.255.0
default-router 192.168.22.1
dns-server 172.16.4.77
!
!
ip ssh time-out 60
ip ssh version 2
!
!
!
voice-card 0
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-4219314571
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-4219314571
revocation-check none
rsakeypair TP-self-signed-4219314571
!
!
crypto pki certificate chain TP-self-signed-4219314571
certificate self-signed 01
3082023A 308201A3 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 34323139 33313435 3731301E 170D3130 30353131 30383231
32355A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D34 32313933
31343537 3130819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100AE2A 733DFFA4 37C3527A 126B1E66 67D12B3C C1AB854B 3DE85E20 DEF5CE6A
BDBFDFB8 55B0EC68 5FD478E9 FFB64E36 6EF8531B AEB63584 8F6DCE0A A08AFE70
4C0CCC70 C7C59960 C7CAF508 250D0C01 D0A7D85B B3A2D7AD C8C9B9BF 82770E97
CB76D7D3 2E3E72DE C52AF83C E89D1635 F440824C B5DA74DC 4E3D533E 07726FFA
7C4B0203 010001A3 62306030 0F060355 1D130101 FF040530 030101FF 300D0603
551D1104 06300482 02523130 1F060355 1D230418 30168014 E1E4A572 DBC0B284
41ACC6C8 BCD9B73A 15DCC02F 301D0603 551D0E04 160414E1 E4A572DB C0B28441
ACC6C8BC D9B73A15 DCC02F30 0D06092A 864886F7 0D010104 05000381 810048EB
72D8DE89 C94F4E52 955692E5 823595DB 6E573BA1 B9A3D990 CAFF0901 D2092EA3
5CD8E8FC 98DFDF4B 966BE802 A7FF218F A43DFEF3 7628DD21 3708D6A1 84F6F870
96FE1F24 A68632A0 FC0203AE B7E8CF55 5BF03E47 F2C9B698 026583F8 ADF974FA
AFBE0884 7C48A9FC 914F2F2B 8248AA28 F99E2A61 43FD63A6 0D9E30D5 03B2
quit
username admin privilege 14 secret 5 $1$MI2Q$WBn5zBVhhWIYqlN24WwMA/
!
!
!
!
!
!
!
interface Loopback1
ip address 10.10.10.10 255.255.255.255
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.2
description Inside: Intern Data vlan
encapsulation dot1Q 2
ip address 192.168.22.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.21.1 255.255.255.0
!
interface FastEthernet0/1
description Outside: Skolens netvaerk ip udefra 83.90.239.178
ip address dhcp
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface Serial0/1/0
no ip address
shutdown
no fair-queue
clock rate 125000
!
interface Serial0/1/1
no ip address
shutdown
clock rate 125000
!
interface Serial0/2/0
bandwidth 8000
ip address 192.168.1.1 255.255.255.252
ip nat inside
ip virtual-reassembly
no fair-queue
clock rate 8000000
!
router eigrp 1111
redistribute connected
redistribute static
network 192.168.1.0 0.0.0.3
network 192.168.21.0
network 192.168.22.0
network 0.0.0.0
no auto-summary
!
!
!
ip http server
ip http secure-server
ip nat inside source list 10 interface FastEthernet0/1 overload
ip nat inside source static tcp 10.10.10.10 80 interface FastEthernet0/1 80
ip nat inside source static tcp 10.10.10.10 22 interface FastEthernet0/1 22
ip nat inside source static tcp 10.10.10.10 23 interface FastEthernet0/1 23
ip nat inside source static tcp 10.10.10.10 443 interface FastEthernet0/1 443
!
access-list 10 remark Permit Traffic From inside Data Valn
access-list 10 permit 192.168.0.0 0.0.255.255
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
alias exec r2 telnet 192.168.1.2
!
line con 0
line aux 0
line vty 0 4
password 7 104D000A0618
!
scheduler allocate 20000 1000
end
R2
Building configuration...
Current configuration : 1680 bytes
!
! No configuration change since last restart
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$l0FZ$KDWuxPIGg4RR3ai.m.3N30
!
no aaa new-model
!
resource policy
!
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.23.1 192.168.23.10
ip dhcp excluded-address 192.168.24.1 192.168.24.10
!
ip dhcp pool data
network 192.168.23.0 255.255.255.0
default-router 192.168.23.1
dns-server 172.16.4.77
!
ip dhcp pool tele
network 192.168.24.0 255.255.255.0
default-router 192.168.24.1
dns-server 172.16.4.77
option 150 ip 192.168.22.100
!
!
ip domain name MercantecVoice.dk
ip ssh time-out 60
ip ssh version 2
!
!
!
voice-card 0
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
username admin privilege 14 secret 5 $1$5nNp$C5/UJLR9I/dYB47w7Exp80
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 2
ip address 192.168.23.1 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.24.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
interface Serial0/2/0
bandwidth 8000
ip address 192.168.1.2 255.255.255.252
no fair-queue
!
router eigrp 1111
network 192.168.1.0 0.0.0.3
network 192.168.23.0
network 192.168.24.0
no auto-summary
!
!
!
ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
alias exec r1 telnet 192.168.1.1
!
line con 0
line aux 0
line vty 0 4
password 7 070C285F4D06
login
!
scheduler allocate 20000 1000
end
SW1
Using 7558 out of 393216 bytes
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
hostname SW1
enable secret 5 $1$I6dx$dxYf2NEEzWH4pb8nWgwe60
ip subnet-zero
spanning-tree mode pvst
spanning-tree extend system-id
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2,10
switchport mode trunk
no ip address
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/3
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/4
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/5
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/6
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/7
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/8
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/9
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/10
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/11
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/12
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/13
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/14
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/15
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/16
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/17
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/18
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/19
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/20
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/21
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/22
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/23
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/24
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/25
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/26
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/27
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/28
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/29
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/30
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/31
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/32
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/33
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/34
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/35
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/36
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/37
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/38
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
shutdown
spanning-tree portfast
interface FastEthernet0/39
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/40
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/41
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/42
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/43
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/44
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/45
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/46
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/47
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface FastEthernet0/48
switchport access vlan 2
switchport mode access
switchport voice vlan 10
no ip address
spanning-tree portfast
interface GigabitEthernet0/1
no ip address
shutdown
interface GigabitEthernet0/2
no ip address
shutdown
interface Vlan1
no ip address
shutdown
interface Vlan2
ip address 192.168.22.2 255.255.255.0
interface Vlan10
ip address 192.168.21.2 255.255.255.0
ip classless
ip http server
line con 0
line vty 0 4
password cisco
login
line vty 5 15
login
end
SW2
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname SW2
enable secret 5 $1$d.AW$n9spFJmENqFkkRB8DlHg./
enable password cisco
no aaa new-model
ip subnet-zero
crypto pki trustpoint TP-self-signed-1708353664
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1708353664
revocation-check none
rsakeypair TP-self-signed-1708353664
crypto pki certificate chain TP-self-signed-1708353664
certificate self-signed 01 nvram:IOS-Self-Sig#3401.cer
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2,10
switchport mode trunk
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/3
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/4
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/5
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/6
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/7
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/8
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/9
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/10
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/11
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/12
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/13
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/14
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/15
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/16
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/17
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/18
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/19
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/20
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/21
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/22
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/23
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface FastEthernet0/24
switchport access vlan 2
switchport mode access
switchport voice vlan 10
spanning-tree portfast
interface GigabitEthernet0/1
switchport mode dynamic desirable
interface GigabitEthernet0/2
switchport mode dynamic desirable
interface Vlan1
no ip address
interface Vlan2
ip address 192.168.23.2 255.255.255.0
ip classless
ip http server
ip http secure-server
control-plane
line con 0
password cisco
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
end