Table of Contents
Configuration Examples
Catalyst 8540 CSR with ISL, VLAN, and BVI with GEC
Catalyst 8540 CSR with HSRP
Catalyst 8540 with POS Uplink Interface
Catalyst 8540 with ATM Uplink Interface
Configuration Examples
This chapter provides real-world examples of Layer 3 switching configurations and includes the following sections:
Catalyst 8540 CSR with ISL, VLAN, and BVI with GEC
This example configuration focuses on both the Inter-Switch Link (ISL) and virtual LANs (VLANs) as well as integrated routing and bridging (IRB) using a bridge-group virtual interface (BVI) over Gigabit EtherChannel (GEC). The Cisco proprietary ISL allows any Fast Ethernet port to be configured as a trunk. The Spanning Tree Protocol detects and breaks loops on all the VLANs carried across the trunk.
The Gigabit Ethernet interface information applies to both two-port and eight-port Gigabit Ethernet interfaces for a Catalyst 8540 campus switch router. This example also includes CPU redundancy, multicast routing, port snooping, and Network Time Protocol (NTP) configurations.
 |
Note BVIs do not support IP multicast routing. |
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
logging buffered 4096 debugging
enable password 7 0833595E08
facility-alarm core-temperature major 53
facility-alarm core-temperature minor 45
clock summer-time pdt recurring
ip name-server 171.69.2.132
ip name-server 198.92.30.32
ip dvmrp route-limit 20000
ip address 171.200.1.2 255.255.255.0
interface FastEthernet0/0/0
interface FastEthernet0/0/0.128
ip address 172.68.16.10 255.255.255.0
ip helper-address 172.68.16.15
ip multicast ttl-threshold 1
interface FastEthernet0/0/0.199
ip address 172.68.17.15 255.255.255.0
ip helper-address 172.68.16.16
ip helper-address 172.68.16.17
ip helper-address 172.68.16.18
ip multicast ttl-threshold 1
interface FastEthernet0/0/0.201
ip address 172.68.18.10 255.255.255.0
ip helper-address 172.68.16.16
ip helper-address 172.68.16.17
ip helper-address 172.68.16.18
ip multicast ttl-threshold 1
interface FastEthernet0/0/1
interface FastEthernet0/0/2
interface FastEthernet0/0/3
interface FastEthernet0/0/4
interface FastEthernet0/0/5
interface FastEthernet0/0/6
interface FastEthernet0/0/7
interface FastEthernet0/0/8
ip address 172.68.19.10 255.255.255.0
ip helper-address 172.68.16.16
ip helper-address 172.68.16.17
ip helper-address 172.68.16.18
ip multicast ttl-threshold 1
interface FastEthernet0/0/9
interface FastEthernet0/0/10
interface FastEthernet0/0/11
interface FastEthernet0/0/12
interface FastEthernet0/0/13
interface FastEthernet0/0/14
interface FastEthernet0/0/15
interface GigabitEthernet1/0/0
snoop interface FastEthernet0/0/3 direction both
snoop interface FastEthernet0/0/4 direction both
snoop interface FastEthernet0/0/5 direction both
ip address 172.68.21.10 255.255.255.0
ip helper-address 172.68.16.19
ip helper-address 172.68.16.20
ip helper-address 172.68.16.21
interface GigabitEthernet1/0/1
interface GigabitEthernet2/0/0
ip address 172.68.1.1 255.255.255.0
interface GigabitEthernet2/0/1
ip address 172.69.1.1 255.255.255.0
interface GigabitEthernet3/0/0
interface GigabitEthernet3/0/1
interface GigabitEthernet3/0/2
interface GigabitEthernet3/0/3
interface GigabitEthernet3/0/4
interface GigabitEthernet3/0/5
interface GigabitEthernet3/0/6
interface GigabitEthernet3/0/7
ip address 171.201.1.2 255.255.255.0
ip address 172.68.20.10 255.255.255.0
ntp clock-period 17181168
Catalyst 8540 CSR with HSRP
This example configuration for a Catalyst 8540 campus switch router focuses on the Hot Standby Router Protocol (HSRP), which provides high network availability. HSRP makes network topology changes transparent to the host. The active router is monitored by other standby routers, and as soon as an active router becomes unavailable, the standby router takes its place.
Helper addresses facilitate connectivity by forwarding certain broadcasts to a target server. In this example, an IP helper address identifies the Dynamic Host Configuration Protocol (DHCP) server IP address. This configuration also includes configuration for IP multicast, Distance Vector Multicast Routing Protocol (DVMRP), tunneling, and Protocol Independent Multicast (PIM) in sparse mode.
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service udp-small-servers
service tcp-small-servers
aaa authentication login admin tacacs+ enable
enable password 7 105D100A0618
ip rcmd remote-host root 172.69.1.162 root enable
ip rcmd remote-host root 172.69.2.81 root enable
ip rcmd remote-host root 172.69.6.66 root enable
ip rcmd remote-host root 172.69.43.19 root enable
ip rcmd remote-username root
ip name-server 172.69.2.132
ip name-server 198.92.30.32
ip dvmrp route-limit 7000
clock summer-time PDT recurring
interface FastEthernet1/0/0
ip address 172.69.95.197 255.255.255.192
interface FastEthernet1/0/1
description Bldg 1 Network A
ip address 172.69.93.1 255.255.255.192
ip helper-address 172.69.2.74
ip helper-address 172.69.2.123
ip helper-address 172.69.30.31
ip helper-address 172.69.2.121
ip helper-address 172.71.84.140
ip helper-address 172.69.67.35
interface FastEthernet1/0/2
ip address 172.69.90.1 255.255.255.0
ip helper-address 172.69.2.74
ip helper-address 172.69.2.123
ip helper-address 172.69.30.31
ip helper-address 172.69.2.121
ip helper-address 172.71.84.140
ip helper-address 172.69.67.35
standby track FastEthernet1/0/3 150
interface FastEthernet1/0/3
ip address 172.69.91.1 255.255.255.0
ip helper-address 172.69.2.74
ip helper-address 172.69.2.123
ip helper-address 172.69.30.31
ip helper-address 172.69.2.121
ip helper-address 172.71.84.140
ip helper-address 172.69.67.35
interface FastEthernet1/0/4
description Building 2 Network A
ip address 172.69.88.1 255.255.255.192
ip helper-address 172.69.2.74
ip helper-address 172.69.2.123
ip helper-address 172.69.30.31
ip helper-address 172.69.2.121
ip helper-address 172.71.84.140
ip helper-address 172.69.67.35
interface FastEthernet1/0/5
description Building 3 Network A
ip address 172.69.89.1 255.255.255.192
ip helper-address 172.69.2.74
ip helper-address 172.69.2.123
ip helper-address 172.69.30.31
ip helper-address 172.69.2.121
ip helper-address 172.71.84.140
ip helper-address 172.69.67.35
interface FastEthernet1/0/6
interface FastEthernet1/0/7
interface FastEthernet1/0/8
interface FastEthernet1/0/9
interface FastEthernet1/0/10
interface FastEthernet1/0/11
interface FastEthernet1/0/12
interface FastEthernet1/0/13
interface FastEthernet1/0/14
interface FastEthernet1/0/15
ip forward-protocol udp sunrpc
ip pim accept-rp 172.69.10.13
snmp-server community 8540 RO 98
snmp-server community Cisco RW 99
snmp-server host 172.69.43.19 traps public
tacacs-server host 172.69.2.210
tacacs-server host 172.69.35.87
login authentication admin
login authentication admin
login authentication admin
exception dump 172.69.43.19
exception memory minimum 1000000
ntp authentication-key 1 md5 06030C3242410A 7
ntp authentication-key 10 md5 15360E1F2F3E2434 7
ntp peer 172.69.95.196 key 1
ntp server 172.69.95.194 key 1
ntp server 172.69.95.193 key 1
Catalyst 8540 with POS Uplink Interface
The following example shows the default configuration of the POS uplink interface:
Router#
show running-config interface pos 1/0/0
Building configuration...
ip address 10.0.0.1 255.255.255.0
The following example shows the POS uplink interface configured for PPP encapsulation and internal clock source:
Router#
show running-config interface pos 3/0/0
Building configuration...
ip address 10.0.0.3 255.255.255.0
The following example shows the POS uplink interface configured with all alarm report, threshold crossing alarms, and AIS-L on interface shutdown:
Router#
show running-config interface pos 9/0/0
Building configuration...
ip address 10.0.0.9 255.255.255.0
Catalyst 8540 with ATM Uplink Interface
The following example shows the default configuration of the ATM uplink interface:
Router#
show running-config interface atm 1/0/0
Building configuration...
ip address 10.0.0.1 255.255.255.0
The following example shows a typical configuration for routing between the ATM interface and Gigabit Ethernet interface using RFC 1483 with a map list:
Router#
more system:running-config
Building configuration...
ip address 70.0.0.70 255.0.0.0
interface GigabitEthernet9/0/1
ip address 10.0.0.6 255.0.0.0
ip route 10.0.0.0 255.0.0.0 GigabitEthernet9/0/1
ip route 40.0.0.0 255.0.0.0 70.0.0.74
ip 70.0.0.74 atm-vc 70 broadcast
arp 10.0.0.10 0000.0000.0033 ARPA
The following example shows a typical configuration for bridging between the ATM interface and Gigabit Ethernet interface using RFC 1483 with a map list:
Router#
more system:running-config
Building configuration...
interface GigabitEthernet9/0/1
ip address 10.0.0.6 255.0.0.0