Assigning an IP address to a port
Assign an IP address to a port so that it supports routing operations.
About this task
Use a brouter port to route IP packets and to bridge all nonroutable traffic. The routing interface of the brouter port is not subject to the spanning tree state of the port. A brouter port can be in the blocking state for nonroutable traffic and still route IP traffic. This feature removes interruptions caused by Spanning Tree Protocol recalculations in routed traffic.
If an IP interface is configured without specifying the VRF instance, it maps to VRF 0 by default.
Use the vrf parameter to associate the port or VLAN with a VRF instance.
Procedure
Example
Assign an IP address to a port:
Switch:1>enable Switch:1#configure terminal Switch:1(config)#interface gigabitethernet 1/11 Switch:1(config-if)#brouter port 1/11 vlan 2202 subnet 47.17.10.31/255.255.255.0
Variable Definitions
Use the data in the following table to use the brouter port command.
Variable |
Value |
---|---|
mac-offset <MAC-offset> |
Specifies a number by which to offset the MAC address from the chassis MAC address. This ensures that each IP address has a different MAC address. If you omit this variable, a unique MAC offset is automatically generated. Different hardware platforms support different ranges. To see which range is available on the switch, use the CLI command completion Help. |
name WORD <0-64> |
Specifies the IP address name in the range of 0 to 64 characters. |
{slot/port[/sub-port]} |
Identifies a single slot and port. If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port. |
subnet <A.B.C.D/X> |
Specifies the IP address and subnet mask (0–32). |
<2-4059> |
Specifies the VLAN ID that is used if the port is tagged (802.1q encapsulation). The VLAN ID is unique to the switch and is not used if the port is untagged. |
Use the data in the following table to use the show brouter command.
Variable |
Value |
---|---|
<1-4084> |
Specifies the VLAN ID that is used if the port is tagged (802.1q encapsulation). The VLAN ID is unique to the switch and is not used if the port is untagged. |