![]() |
Layer 3 Switching Software Feature and Configuration Guide, 12.0(4a)WX5(11a)
|
|
Configuration Examples
![]() |
||
|
Table of ContentsComprehensive Configuration ExamplesComprehensive Configuration ExamplesThis chapter provides real-world examples of Layer 3 switching configurations. Note The IP, IPX, and network addresses in these examples are generic addresses, so you must replace them with the appropriate addresses for your network. Sample Catalyst 8540 CSR with ISL and VLANThis sample configuration focuses on the Inter-Switch Link (ISL) and virtual LANs (VLANs). The Cisco proprietary Inter-Switch Link 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 a two-port Gigabit Ethernet interface for a Catalyst 8540 campus switch router. This sample configuration includes port snooping configuration information. version 12.0 no service pad no service password-encryption ! hostname Cat8540_NY ! ip multicast-routing ip dvmrp route-limit 7000 ipx routing 0090.2fff.8800 ! ! interface FastEthernet0/0/0 ! interface FastEthernet0/0/0.128 ! interface FastEthernet0/0/0.199 ! interface FastEthernet0/0/0.201 ! 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 ! 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 FastEthernet2/0/3 direction both snoop interface FastEthernet2/0/4 direction both snoop interface FastEthernet2/0/5 direction both ! interface gigabitEthernet1/0/0.233 ! interface Ethernet0 ! router igrp 87 ! ip http server ! line con 0 line aux 0 line vty 0 4 ! end Sample Catalyst 8540 CSR with HSRPThis sample 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 (DVRMP), tunneling, and Protocol Independent Multicast (PIM) in sparse mode. version 11.3 service slave-coredump no service pad 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 ! hostname mozart ! aaa new-model aaa authentication login admin tacacs+ enable enable password 7 105D100A0618 ! no ip rcmd domain-lookup ip rcmd rcp-enable ip rcmd rsh-enable 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 domain-name CISCO.COM ip name-server 172.69.2.132 ip name-server 198.92.30.32 ip multicast-routing ip dvmrp route-limit 7000 clock timezone PST -8 clock summer-time PDT recurring ! interface FastEthernet1/0/0 ! interface FastEthernet1/0/1 ! interface FastEthernet1/0/2 ! interface FastEthernet1/0/3 ! interface FastEthernet1/0/4 ! interface FastEthernet1/0/5 ! 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 ! interface Ethernet0 ! router eigrp 109 network 172.69.0.0 no auto-summary ! ip forward-protocol udp sunrpc ip pim accept-rp auto-rp ip pim accept-rp 172.69.10.13 logging 172.69.43.19 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 tacacs-server timeout 15 ! line con 0 line vty 0 line vty 1 line vty 2 4 ! 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 authenticate ntp trusted-key 1 ntp update-calendar ntp peer 172.69.95.196 key 1 ntp server 172.69.95.194 key 1 ntp server 172.69.95.193 key 1 end
|
|
|
|