Cisco 2501 - Router - EN Bedienungsanleitung Seite 40

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 76
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 39
218
Chapter 4
"
Introduction to the Cisco IOS and SDM
Configuring an IP Address on an Interface
Even though you don’t have to use IP on your routers, it’s most often what people actually do
use. To configure IP addresses on an interface, use the ip address command from interface
configuration mode:
Todd(config)#int f0/1
Todd(config-if)#ip address 172.16.10.2 255.255.255.0
Don’t forget to enable the interface with the no shutdown command. Remember to look
at the command show interface int to see if the interface is administratively shut down or
not. show running-config will also give you this information.
The ip address address mask command starts the IP processing on the
interface.
If you want to add a second subnet address to an interface, you have to use the secondary
parameter. If you type another IP address and press Enter, it will replace the existing IP address
and mask. This is definitely a most excellent feature of the Cisco IOS.
So let’s try it. To add a secondary IP address, just use the secondary parameter:
Todd(config-if)#ip address 172.16.20.2 255.255.255.0 ?
secondary Make this IP address a secondary address
<cr>
Todd(config-if)#ip address 172.16.20.2 255.255.255.0 secondary
Todd(config-if)#^Z
Todd(config-if)#do sh run
Building configuration...
[output cut]
interface FastEthernet0/1
ip address 172.16.20.2 255.255.255.0 secondary
ip address 172.16.10.2 255.255.255.0
duplex auto
speed auto
!
I really wouldn’t recommend having multiple IP addresses on an interface because it’s ugly
and inefficient, but I showed you anyway just in case you someday find yourself dealing with
an MIS manager who’s in love with really bad network design and makes you administer it!
And who knows? Maybe someone will ask you about it someday and you’ll get to seem really
smart because you know this.
47020.book Page 218 Wednesday, January 2, 2008 4:31 PM
Seitenansicht 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 75 76

Kommentare zu diesen Handbüchern

Keine Kommentare