Table Of Contents
Configuration Examples
Example of a Catalyst 2948G-L3 with ISL and VLAN
Example of a Catalyst 2948G-L3 with HSRP
Example of a Catalyst 4908G-L3 with Bridging
Example of a Catalyst 2948G-L3 with IP Uplink Redirect
Example of a Catalyst 2948G-L3 with QoS
Configuration Examples
This appendix provides real-world examples of Layer 3 switching configurations. This appendix contains the following sections:
•
Example of a Catalyst 2948G-L3 with ISL and VLAN
•
Example of a Catalyst 2948G-L3 with HSRP
•
Example of a Catalyst 4908G-L3 with Bridging
•
Example of a Catalyst 2948G-L3 with IP Uplink Redirect
•
Example of a Catalyst 2948G-L3 with QoS
Note
The IP, IPX, and network addresses in these examples are generic addresses, so you must replace them with the actual addresses for your network.
Example of a Catalyst 2948G-L3 with ISL and VLAN
This example configuration for a Catalyst 2948G-L3 switch router focuses on Inter-Switch Link (ISL) and virtual LANs (VLANs), integrated routing and bridging (IRB) using a Bridge-Group Virtual Interface (BVI), Fast EtherChannel (FEC), and Gigabit EtherChannel (GEC). The Cisco proprietary ISL allows any Fast Ethernet port to be configured as a trunk. This example also includes multicast routing.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
enable secret 5 $1$1$1$1$1$1$1$1$1$
sdm size ipx-bvi-network 32
sdm size ip-adjacency 1056
sdm size ipx-network 2048
sdm size udp-flooding 512
sdm size l2-switching 5000
ipx routing 0050.3e7b.c800
ip address 1.200.0.1 255.255.0.0
ipx network 1200 encapsulation ARPA
interface FastEthernet1.100
ip address 1.1.0.1 255.255.0.0
ipx network 1001 encapsulation ARPA
interface FastEthernet2.200
ip address 1.2.0.1 255.255.0.0
ipx network 1002 encapsulation ARPA
ip address 24.0.4.4 255.0.0.0
interface GigabitEthernet49
interface GigabitEthernet50
ip address 1.3.0.1 255.255.0.0
ipx network 1003 encapsulation ARPA
Example of a Catalyst 2948G-L3 with HSRP
This example configuration for a Catalyst 2948G-L3 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 Layer 3 switch 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 uptime
service timestamps log uptime
no service password-encryption
enable secret 5 $1$1$1$1$1$1$1$1$1$1$1$
sdm size ipx-bvi-network 32
sdm size ip-adjacency 1056
sdm size ipx-network 2048
sdm size udp-flooding 512
sdm size l2-switching 5000
ipx routing 0050.3e7b.c800
ip address 172.69.95.197 255.255.255.192
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
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
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
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
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
ip address 24.0.4.4 255.0.0.0
interface GigabitEthernet49
interface GigabitEthernet50
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
Example of a Catalyst 4908G-L3 with Bridging
This example configuration for the Catalyst 4908G-L3 switch router shows the eight Gigabit Ethernet ports as part of one bridge group.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
enable secret 5 $1$1$1$1$1$1$1$1$1$
sdm size ipx-bvi-network 32
sdm size ip-adjacency 1056
sdm size ipx-network 2048
sdm size l2-switching 5000
interface GigabitEthernet1
interface GigabitEthernet2
interface GigabitEthernet7
interface GigabitEthernet8
Example of a Catalyst 2948G-L3 with IP Uplink Redirect
This example configuration for the Catalyst 2948G-L3 switch router shows all IP traffic between Fast Ethernet ports will be redirected to G49 and switched via the upstream router 200.10.49.2.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
ip address 200.10.1.1 255.255.255.0
ip address 200.10.2.1 255.255.255.0
ip address 200.10.3.1 255.255.255.0
ip address 200.10.4.1 255.255.255.0
ip address 200.10.5.1 255.255.255.0
ip address 200.10.6.1 255.255.255.0
ip address 200.10.45.1 255.255.255.0
ip address 200.10.46.1 255.255.255.0
ip address 200.10.47.1 255.255.255.0
ip address 200.10.48.1 255.255.255.0
interface GigabitEthernet49
ip address 200.10.49.1 255.255.255.0
interface GigabitEthernet50
ip address 200.10.50.1 255.255.255.0
ip route 0.0.0.0 0.0.0.0 200.10.49.2
Example of a Catalyst 2948G-L3 with QoS
This example configuration for the Catalyst 2948G-L3 switch router shows interface FastEthernet1 input rate-limiting at 1000000 bits per second and a burst of 1000 bytes. The interface FastEthernet2 is configured for traffic-shaping rate-limiting at 1000000 bits per second and a burst of 1000 bits.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
ip address 1.1.1.1 255.0.0.0
rate-limit input 1000000 1000
ip address 2.2.2.2 255.0.0.0
traffic-shape rate 1000000 1000
ip address 3.3.3.3 255.0.0.0
interface GigabitEthernet49
interface GigabitEthernet50