ITC-2300 VoIP Lab Switch and Router Configurations: Difference between revisions

From ITCwiki
Jump to navigation Jump to search
No edit summary
Line 46: Line 46:
!
!
spanning-tree portfast default
spanning-tree portfast default
!
!
!
interface GigabitEthernet1/0/1
interface GigabitEthernet1/0/1
description Asterisk Server PC
switchport access vlan 10
switchport mode access
!
interface GigabitEthernet1/0/2
description VoIP Phone 1
switchport access vlan 10
switchport mode access
switchport voice vlan 10
spanning-tree portfast
!
interface GigabitEthernet1/0/3
description VoIP Phone 2
  switchport access vlan 10
  switchport access vlan 10
  switchport mode access
  switchport mode access
  no shutdown
  switchport voice vlan 10
spanning-tree portfast
!
!
!
!
interface GigabitEthernet1/0/24
interface GigabitEthernet1/0/24
description Trunk Connection to Router
  switchport mode trunk
  switchport mode trunk
  no shutdown
  no shutdown

Revision as of 01:38, 30 October 2019

Don't forget to modify for the information specific to your Pod:

  • Change the hostname of both the Router and Switch to include your Pod Number
  • Change the IP Address on the Router Fa0/0 interface to the correct IP for your pod

You may want to make some additional changes for administration ease:

  • Set an enable secret
  • Setup a username and secret on both devices
  • Setup SSH on both devices

Router Configuration

hostname PodX-Router
!
ip dhcp excluded-address 192.168.10.1 192.168.10.20
!
ip dhcp pool internal-voip
   network 192.168.10.0 255.255.255.0
   dns-server 172.17.139.10
   default-router 192.168.10.1
!
interface FastEthernet0/0
 ip address 172.17.144.XX 255.255.255.0
 ip nat outside
 no shutdown
!
interface FastEthernet0/1.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 ip nat inside
 no shutdown
!
ip route 0.0.0.0 0.0.0.0 172.17.144.1
!
ip nat inside source list 1 interface FastEthernet0/0 overload
!
access-list 1 permit 192.168.10.0 0.0.0.255

Switch Configuration

hostname PodX-Switch
!
vtp mode transparent
!
vlan 10
!
spanning-tree portfast default
!
!
interface GigabitEthernet1/0/1
 description Asterisk Server PC
 switchport access vlan 10
 switchport mode access
!
interface GigabitEthernet1/0/2
 description VoIP Phone 1
 switchport access vlan 10
 switchport mode access
 switchport voice vlan 10
 spanning-tree portfast
!
interface GigabitEthernet1/0/3
 description VoIP Phone 2
 switchport access vlan 10
 switchport mode access
 switchport voice vlan 10
 spanning-tree portfast
!
!
interface GigabitEthernet1/0/24
 description Trunk Connection to Router
 switchport mode trunk
 no shutdown
!
interface Vlan10
 ip address 192.168.10.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.10.1
!