3-10
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 3 Configuring the Switch IP Address and Default Gateway
Using BOOTP, DHCP, or RARP to Obtain an IP Address
This example shows how to configure SLIP on the console port and verify the configuration:
sparc20%
telnet 172.20.52.38
Trying 172.20.52.38 ...
Connected to 172.20.52.38.
Escape character is '^]'.
Cisco Systems, Inc. Console
Enter password:
Console>
enable
Enter password:
Console> (enable)
set interface sl0 10.1.1.1 10.1.1.2
Interface sl0 slip and destination address set.
Console> (enable)
show interface
sl0: flags=51<UP,POINTOPOINT,RUNNING>
slip 10.1.1.1 dest 10.1.1.2
sc0: flags=63<UP,BROADCAST,RUNNING>
vlan 522 inet 172.20.52.38 netmask 255.255.255.240 broadcast 172.20.52.7
Console> (enable)
slip attach
Console Port now running SLIP.
Console> (enable)
slip detach
SLIP detached on Console port.
Console> (enable)
Using BOOTP, DHCP, or RARP to Obtain an IP Address
Note
For complete information on how the switch uses BOOTP, DHCP, or RARP to obtain its IP
configuration, see the
“Understanding How Automatic IP Configuration Works” section on page 3-2
.
To use BOOTP, DHCP, or RARP to obtain an IP address for the switch, perform this task:
Task
Command
Step 1
Make sure that there is a DHCP, BOOTP, or
RARP server on the network.
–
Step 2
Obtain the last address in the MAC address range
for module 1 (the supervisor engine). This address
is displayed under the MAC-Address(es) heading.
(With DHCP, this step is necessary only if using
the manual allocation method.)
show module
Step 3
Add an entry for each switch in the DHCP,
BOOTP, or RARP server configuration, mapping
the MAC address of the switch to the IP
configuration information for the switch. (With
DHCP, this step is necessary only if using the
manual or automatic allocation methods.)
–
Step 4
Set the sc0 interface IP address to 0.0.0.0.
set interface sc0 0.0.0.0