![]() |
Layer 3 Switching Software Feature and Configuration Guide, 12.0(10)W5(18c)
|
|||||
Configuration Examples
![]() |
||||||
|
Table of ContentsConfiguration ExamplesCatalyst 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 ExamplesThis chapter provides real-world examples of Layer 3 switching configurations and includes the following sections:
Catalyst 8540 CSR with ISL, VLAN, and BVI with GECThe 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.
version 12.0 no service pad service timestamps debug datetime msec localtime show-timezone service timestamps log datetime msec localtime show-timezone service password-encryption ! hostname Cat8540_NY ! logging buffered 4096 debugging enable password 7 0833595E08 ! facility-alarm core-temperature major 53 facility-alarm core-temperature minor 45 clock timezone pst -8 clock summer-time pdt recurring redundancy main-cpu sync config startup sync config running ip subnet-zero no ip domain-lookup ip name-server 171.69.2.132 ip name-server 198.92.30.32 ip multicast-routing ip dvmrp route-limit 20000 bridge irb ! interface Port-channel9 ip address 171.200.1.2 255.255.255.0 no ip directed-broadcast ip pim dense-mode hold-queue 300 in ! 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 FastEthernet0/0/3 direction both snoop interface FastEthernet0/0/4 direction both snoop interface FastEthernet0/0/5 direction both ! interface GigabitEthernet1/0/1 ! interface GigabitEthernet2/0/0 ip address 172.68.1.1 255.255.255.0 no ip directed-broadcast ip pim sparse-dense-mode ! interface GigabitEthernet2/0/1 ip address 172.69.1.1 255.255.255.0 no ip directed-broadcast ip pim sparse-dense-mode ! interface GigabitEthernet3/0/0 no ip address no ip directed-broadcast channel-group 9 ! interface GigabitEthernet3/0/1 no ip address no ip directed-broadcast channel-group 9 ! interface GigabitEthernet3/0/2 no ip address no ip directed-broadcast channel-group 9 ! interface GigabitEthernet3/0/3 no ip address no ip directed-broadcast channel-group 9 ! interface GigabitEthernet3/0/4 no ip address no ip directed-broadcast bridge-group 1 ! interface GigabitEthernet3/0/5 no ip address no ip directed-broadcast bridge-group 1 ! interface GigabitEthernet3/0/6 no ip address no ip directed-broadcast bridge-group 1 ! interface GigabitEthernet3/0/7 no ip address no ip directed-broadcast bridge-group 1 ! interface BVI1 ip address 171.201.1.2 255.255.255.0 no ip directed-broadcast no ip route-cache cef ! interface Ethernet0 ! router eigrp 170 network 171.200.0.0 network 171.201.0.0 network 172.68.0.0 network 172.69.0.0 no auto-summary ! router bgp 180 network 172.68.1.0 network 172.69.1.0 no auto-summary ! ip classless ! bridge 1 protocol ieee bridge 1 route ip bridge 1 route ipx ! ! ip http server ! line con 0 line aux 0 line vty 0 4 ! ntp clock-period 17181168 ntp update-calendar ntp server 171.71.150.52 ntp server 171.69.4.143 ntp server 171.69.5.10 end Catalyst 8540 CSR with HSRPHelper 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. 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 Catalyst 8540 with POS Uplink InterfaceThe following example shows the default configuration of the POS uplink interface: Router# show running-config interface pos 1/0/0 Building configuration... Current configuration: ! interface POS1/0/0 ip address 10.0.0.1 255.255.255.0 no ip directed-broadcast crc 32 end 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... Current configuration: ! interface POS3/0/0 ip address 10.0.0.3 255.255.255.0 no ip directed-broadcast encapsulation ppp crc 32 clock source internal end 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... Current configuration: ! interface POS9/0/0 ip address 10.0.0.9 255.255.255.0 no ip directed-broadcast crc 32 pos ais-shut pos report lais pos report lrdi pos report pais pos report prdi pos report sd-ber pos report uneq-p pos report plm-p pos threshold sd-ber 9 pos threshold sf-ber 6 pos threshold b1-tca 9 pos threshold b2-tca 9 pos threshold b3-tca 9 end Catalyst 8540 with ATM Uplink InterfaceThe following example shows the default configuration of the ATM uplink interface: Router# show running-config interface atm 1/0/0 Building configuration... Current configuration: ! interface ATM1/0/0 ip address 10.0.0.1 255.255.255.0 no ip directed-broadcast end 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... Current configuration: ! interface ATM1/0/0 ip address 70.0.0.70 255.0.0.0 map-group pvc1 atm pvc 70 0 70 aal5snap ! 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 ! map-list pvc1 ip 70.0.0.74 atm-vc 70 broadcast arp 10.0.0.10 0000.0000.0033 ARPA ! end 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... Current configuration: ! interface ATM1/0/0 atm pvc 70 0 70 aal5snap bridge-group 5 ! interface GigabitEthernet9/0/1 ip address 10.0.0.6 255.0.0.0 bridge-group 5 ! bridge 5 protocol ieee end
|
|||||
|
|