Command:

set interface

Mode:

Switch> (enable)


Syntax:

set interface {sc0 | me1 | sl0} {up | down}

set interface sc0 [vlan] [ip_addr [netmask [broadcast]]]

set interface sc0 [vlan] [ip_addr/netmask[broadcast]]

set interface me1 ip_addr [netmask [broadcast]]

set interface me1 ip_addr/netmask [broadcast]

set interface sl0 slip_addr dest_addr

set interface sc0 dhcp {renew | release}


Syntax Description:

sc0

Keyword that specifies the in-band management interface.

me1

Keyword that specifies the out-of-band management Ethernet interface.

sl0

Keyword that specifies the SLIP interface.

up

Keyword used to bring the interface into operation.

down

Keyword used to bring the interface out of operation.

vlan

(Optional) Variable that specifies the number of the VLAN to be assigned to the interface.

ip_addr

(Optional) Variable that specifies the IP address to assign to the interface.

netmask

(Optional) Variable that specifies the subnet mask or mask bits to assign to the interface.

broadcast

(Optional) Variable that specifies the broadcast address to assign to the interface.

slip_addr

Variable that specifies the SLIP source address of the console port.

dest_addr

Variable that specifies the SLIP destination address of the host to which the console port will be connected.

dhcp

Keyword used to perform DHCP operations on the sc0 interface.

renew

Keyword used to renew the lease on a DHCP-learned IP address.

release

Keyword used to release a DHCP-learned IP address back to the DHCP IP address pool.

Defaults

The default configuration has the IP address, subnet mask, and broadcast address of the in-band management interface (sc0) and out-of-band management Ethernet interface (me1) set to 0.0.0.0, with the sc0 interface in VLAN 1. The default configuration for the SLIP interface (sl0) is that the SLIP source and destination addresses are set to 0.0.0.0.

 


Command Description:

Use the set interface command to set the network interface configuration and to enable or disable standard SNMP trap operation.

The Catalyst 4000 family switches support three IP management interfaces: sc0, sl0, and an out-of-band management Ethernet interface (me1). The me1 interface is not attached to the switching fabric. If both the sc0 and me1 interfaces are configured, the supervisor engine software determines which interface to use when performing standard transmission and reception of IP packets based on the local routing table. Operations that use this functionality include TFTP, ping, Telnet, and SNMP.

You can enter the netmask value in dotted decimal format or you can specify the number of bits in the netmask (for example, 204.20.22.7/24).

 


Example:

This example shows how to use set interface sc0 and set interface sl0 from the console port. It also  shows how to bring down interface sc0 using a terminal connected to the console port:

Console> (enable) set interface sc0 192.200.11.44 255.255.255.0

Interface sc0 IP address and netmask set.
Console> (enable) set interface sl0 192.200.10.45 192.200.10.103

Interface sl0 SLIP and destination address set.
Console> (enable) set interface sc0 down

Interface sc0 administratively down.
Console> (enable)
 

This example shows how to set the IP address for sc0. If you do not specify a subnet mask, the default mask for that IP address class is used (for example, 255.255.0.0 for a class B address):

Console> (enable) set interface sc0 172.20.52.123

Interface sc0 IP address and netmask set.
Console> (enable)
 

This example shows how to set the VLAN, IP address, and subnet mask bits for the sc0 interface:

Console> (enable) set interface sc0 5 172.20.52.123/28

Interface sc0 vlan set, IP address and netmask set.
Console> (enable)
 

This example shows how to change the VLAN membership of the sc0 interface:

Console> (enable) set interface sc0 2

Interface sc0 vlan set.
Console> (enable)
 

This example shows how to take the sc0 interface down:

Console> (enable) set interface sc0 down

Interface sc0 administratively down.
Console> (enable) 

This example shows how to bring the sc0 interface up:

Console> (enable) set interface sc0 up

Interface sc0 administratively up.
Console> (enable)
 

This example shows how to set the IP address and netmask for me1:

Console> (enable) set interface me1 10.10.10.20/24
Interface me1 IP address and netmask set.
Console> (enable)
 

This example shows how to set the SLIP source and destination addresses for the console port on the sl0 interface:

Console> (enable) set interface sl0 10.1.1.1 10.1.1.2

Interface sl0 slip and destination address set.
Console> (enable)
 

This example shows how to release a DHCP IP address assigned to the sc0 interface:

Console> (enable) set interface sc0 dhcp release


Console> (enable)
 

This example shows how to renew the lease on a DHCP IP address assigned to the sc0 interface:

Console> (enable) set interface sc0 dhcp release


Console> (enable)
 

This example shows how to release a DHCP IP address assigned to the sc0 interface and obtain a new IP address from the DHCP server:

Console> (enable) set interface sc0 dhcp release


Console> (enable)
 

This example shows how to renew the lease on a DHCP-assigned IP address:

Console> (enable) set interface sc0 dhcp renew

Renewing IP address...
Console> (enable) Sending DHCP packet with address:00:90:0c:5a:8f:ff
dhcpoffer
Sending DHCP packet with address:00:90:0c:5a:8f:ff
Timezone set to '', offset from UTC is 7 hours 58 minutes
Timezone set to '', offset from UTC is 7 hours 58 minutes
172.16.30.32 added to DNS server table as primary server.
172.16.31.32 added to DNS server table as backup server.
172.16.32.32 added to DNS server table as backup server.
NTP server 172.16.25.253 added
NTP server 172.16.25.252 added
%MGMT-5-DHCP_S:Assigned IP address 172.20.25.244 from DHCP Server 172.20.25.254
Console> (enable)
 

This example shows how to release the lease on a DHCP-assigned IP address:

Console> (enable) set interface sc0 dhcp release

Releasing IP address...
Console> (enable) Sending DHCP packet with address:00:90:0c:5a:8f:ff
Done
Console> (enable)

 


Misconceptions:

On the Catalyst 4000 family switches, when entering the set interface me1 or set interface trap {sc0 | sl0 | me1} command, sc0 and me1 cannot be configured as up when both are in the same subnet or overlapping subnets. If you specify an IP address and subnet for the sc0 or me1 interface that causes an overlap, the me1 interface is kept up or brought up, and the sc0 interface is brought down. The only exception is when both the me1 and sc0 interfaces have IP address 0.0.0.0. In this case, the me1 interface is brought down and the sc0 interface is brought up to allow the DHCP and RARP to run on the sc0 interface.


Related Commands:
show interface (switch)

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)