11.07.2015 Views

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ip addressChapter 2<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> <strong>Cisco</strong> <strong>IOS</strong> Comm<strong>and</strong>sip addressUse the ip address interface configuration comm<strong>and</strong> on the switch stack or on a st<strong>and</strong>alone switch to setan IP address for the Layer 2 switch or an IP address for each switch virtual interface (SVI) or routedport on the Layer 3 switch. Use the no form of this comm<strong>and</strong> to remove an IP address or to disable IPprocessing.ip address ip-address subnet-mask [secondary]no ip address [ip-address subnet-mask] [secondary]Syntax Descriptionip-addresssubnet-masksecondaryIP address.Mask for the associated IP subnet.(Optional) Specifies that the configured address is a secondary IP address. Ifthis keyword is omitted, the configured address is the primary IP address.DefaultsNo IP address is defined.Comm<strong>and</strong> ModesInterface configurationComm<strong>and</strong> HistoryRelease12.2(35)SE2ModificationThis comm<strong>and</strong> was introduced.Usage GuidelinesIf you remove the switch IP address through a Telnet session, your connection to the switch will be lost.Hosts can find subnet masks using the Internet Control Message Protocol (ICMP) Mask Requestmessage. Routers respond to this request with an ICMP Mask Reply message.You can disable IP processing on a particular interface by removing its IP address with the no ip addresscomm<strong>and</strong>. If the switch detects another host using one of its IP addresses, it will send an error messageto the console.You can use the optional keyword secondary to specify an unlimited number of secondary addresses.Secondary addresses are treated like primary addresses, except the system never generates datagramsother than routing updates with secondary source addresses. IP broadcasts <strong>and</strong> ARP requests are h<strong>and</strong>ledproperly, as are interface routes in the IP routing table.NoteIf any router on a network segment uses a secondary address, all other devices on that same segmentmust also use a secondary address from the same network or subnet. Inconsistent use of secondaryaddresses on a network segment can very quickly cause routing loops.When you are routing Open Shortest Path First (OSPF), ensure that all secondary addresses of aninterface fall into the same OSPF area as the primary addresses.2-210<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> Comm<strong>and</strong> ReferenceOL-9776-08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!