You are on page 1of 4

Configuring IP Unicast Routing for Cisco 2960-X

Configuring IP Unicast Routing for Cisco 2960-X: By default, IP routing is disabled on t e s!itc " #or detailed IP routing configuration infor$ation, see t e Cisco I%& IP Configuration 'uide, Release (2"2 fro$ t e Cisco"co$ )age under *ocu$entation + Cisco I%& &oft!are Releases + (2"2 ,ainline + Configuration 'uides" In t ese )rocedures, t e s)ecified interface $ust be a s!itc -irtual interface .&/I0-a /123 interface created by using t e interface -lan-lan4id global configuration co$$and and by default a 1ayer 5 interface" 2ll 1ayer 5 interfaces on ! ic routing !ill occur $ust a-e IP addresses assigned to t e$" Note: The switch supports 16 static routes (including user-configured routes and the default route) and any directly connected routes and default routes for the management interface. The switch can have an IP address assigned to each S I. !efore ena"ling routing# enter the sdm prefer lan"ase-routing glo"al configuration command and reload the switch. Procedures for configuring routing: 6o su))ort /123 interfaces, create and configure /123s on t e s!itc or s!itc stac7, and assign /123 $e$bers i)to 1ayer2interfaces" Configure 1ayer 5 interfaces .&/Is0" 8nable IP routing on t e s!itc " 2ssign IP addresses to t e 1ayer 5 interfaces" Configure static routes" Enabling IP Unicast Routing By default, t e s!itc is in 1ayer 2 s!itc ing $ode and IP routing is disabled" 6o use t e 1ayer 5 ca)abilities of t e s!itc , you $ust enable IP routing" Step : configure ter$inal: 8nters global configuration $ode" 89a$)le: &!itc : configure ter$inal Step 2: IP routing: 8nables IP routing" 89a$)le: &!itc .config0: i) routing Step !: end: Returns to )ri-ileged 8X8C $ode" 89a$)le:
1

&!itc .config0: end Step ": s o! running-config: /erifies your entries" 89a$)le: &!itc : s o! running-config Step #: co)y running-config startu)-config: .%)tional0&a-esyour entriesint e configuration file" 89a$)le: &!itc : co)y running-config startu)-config $ssigning IP $%%resses to S&Is 6o configure IP routing, you need to assign IP addresses to 1ayer 5 net!or7 interfaces" 6 is enables co$$unication !it t e osts of t ose interfaces t at use IP" IP routing is disabled by default, and no IP addresses are assigned to &/Is" 2n IPaddress identifies a location to ! ic IP)ac7ets can be sent"&o$e IPaddresses are reser-ed for s)ecial uses and cannot be used for ost, subnet, or net!or7 addresses" R#C ((66, ;Internet 3u$bers,< contains t e official descri)tion of IP addresses" 2n interface can a-e one )ri$ary IP address" 2 $as7 identifies t e bits t at denote t e net!or7 nu$ber in an IP address" = en you use t e $as7 to subnet a net!or7, t e $as7 is referred to as a subnet $as7" 6o recei-e an assigned net!or7 nu$ber, contact your Internet ser-ice )ro-ider" Beginning in )ri-ileged 8X8C $ode, follo! t ese ste)s to assign an IP address and a net!or7 $as7 to an &/I: Step : configure ter$inal: 8nters global configuration $ode" 89a$)le: &!itc : configure ter$inal Step 2: interface -lan -lan-id: 8nters interface configuration $ode, and s)ecifies t e 1ayer 5 /123 to configure" Step !: IP address i)-address subnet-$as7: Configures t e IP address and IP subnet $as7" 89a$)le: &!itc .config-if0: i) address (0"(">"( 2>>"2>>"2>>"0 Step ": end: Returns to )ri-ileged 8X8C $ode" 89a$)le: &!itc .config-if0: end
2

Step #: s o! interfaces ?interface-id@: /erifies your entries" 89a$)le: &!itc : s o! i) interface gigabitet ernet (A0A( Step 6: s o! i) interface ?interface-id@: /erifies your entries" 89a$)le: &!itc : s o! i) interface gigabitet ernet (A0A( Step ': s o! running-config interface ?interface-id@: /erifies your entries" 89a$)le: &!itc : s o! running-config interface gigabitet ernet (A0A( Step (: co)y running-config startu)-config: .%)tional0&a-esyour entriesint e configuration file" 89a$)le: &!itc : co)y running-config startu)-config Configuring Static Unicast Routes &tatic unicast routes are user-defined routes t at cause )ac7ets $o-ing bet!een a source and a destination to ta7e a s)ecified )at "&tatic routes can be i$)ortant if t e router cannot build a route to a )articular destination and are useful for s)ecifying a gate!ay of last resort to ! ic all unroutable )ac7ets are sent" Beginning in )ri-ileged 8X8C $ode, follo! t ese ste)s to configure a static route: Step : configure ter$inal: 8nters global configuration $ode" 89a$)le: &!itc : configure ter$inal Step 2: IP route )refi9 $as7 Baddress C interfaceD ?distance@: 8stablis a static route" 89a$)le: &!itc .config0: i) route )refi9 $as7 gigabitet ernet (A0AE Step !: end: Returns to )ri-ileged 8X8C $ode" 89a$)le: &!itc .config0: end Step ": s o! i) route: *is)lays t e current state of t e routing table to -erify t e configuration" 89a$)le: &!itc : s o! i) route
3

Step #: co)y running-config startu)-config: .%)tional0 &a-es your entries in t e configuration file" 89a$)le: &!itc : co)y running-config startu)-config )onitoring an% )aintaining t*e IP Net+or, Fou can re$o-e all contents of a )articular cac e, table, or database" Fou can also dis)lay s)ecific statistics"

)ore relate%: Cisco &!itc 3a$ing Rules 8nd-of-1ife and 8nd-of-&ale 2nnounce$ent for t e Cisco 2960 &eries &!itc es Go! to Configure a Cisco 2960 &!itc H Configuring 3et#lo!-1ite for Cisco 2960-X &eries )ore Cisco pro%ucts an% Re-ie+s .ou can -isit: http://www.3anetwork.com/blog

52net!or7"co$ is a !orld leading Cisco net!or7ing )roducts ! olesaler, !e ! olesale original ne! Cisco net!or7ing eIui)$ents, including Cisco Catalyst s!itc es, Cisco routers, Cisco fire!alls, Cisco !ireless )roducts, Cisco $odules and interface cards )roducts at co$)etiti-e )rice and s i) to !orld!ide" %ur !ebsite: tt):AA!!!"5anet!or7"co$ 6ele) one: JK>2-5069-LL55 8$ail: infoM52net!or7"co$ 2ddress: 25A# 1uc7y PlaNa, 5(>-52( 1oc7 art Road, =anc ai, Gong7ong

You might also like