Cisco Cisco SG300-28 28-Port Gigabit Managed Switch Technical References

Page of 1053
Introduction
42
78-21485-01 Command Line Interface Reference Guide
1
The neighbor router 2001:DB8:3333:7271::1 connected to VLAN 1 should be 
configured with the static route defined immediately below. 
IPv6 Route 2001:DB8:2222:7272::72/128 2001:DB8:3333:7271::2312
Without RIP on the Loopback Interface
The following example describes how to configure IP on a Layer 3 switch with RIP 
not running on the loopback interface:
The other routers need static routes for 172.25.13.2/32, because the route is 
advertised by RIP.
Switch# configure terminal
Switch(config)# interface vlan 1
Switch(config-if)# ip address 10.10.10.2 /24
Switch(config-if)# exit
Switch(config)# interface vlan 2
Switch(config-if)# ip address 10.11.11.2 /24
Switch(config-if)# exit
Switch(config)# interface loopback 1
Switch(config-if)# ip address 172.25.13.2 /32
Switch(config-if)# exit
Switch(config)# router rip
Switch(config-rip)# network 10.10.10.2
Switch(config-rip)# network 10.11.10.2
Switch(config-rip)# redistribute connected
Switch(config-rip)# exit