Chapter 7
Configuring IPv4 for Gigabit Ethernet Interfaces
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
Configuring Static IPv4 Routing
To configure static IPv4 routing (see
steps:
Command
Step 1
switch# config terminal
switch(config)#
Step 2
switch(config)# ip route
10.100.1.0 255.255.255.0 10.1.1.1
switch(config-if)#
Displaying the IPv4 Route Table
The ip route interface command takes the Gigabit Ethernet interface as a parameter and returns the
route table for the interface. See
Example 7-2
switch# show ips ip route interface gig 8/1
Codes: C - connected, S - static
No default gateway
C 10.1.3.0/24 is directly connected, GigabitEthernet8/1
Connected (C) identifies the subnet in which the interface is configured (directly connected to the
interface). Static (S) identifies the static routes that go through the router.
IPv4-ACLs
This section describes the guidelines for IPv4 access control lists (IPv4-ACLs) and how to apply them
to Gigabit Ethernet interfaces.
This section includes the following topics:
•
•
For information on creating IPv4-ACLs, see the Cisco MDS 9000 Family NX-OS Security Configuration
Note
Guide.
Gigabit Ethernet IPv4-ACL Guidelines
Follow these guidelines when configuring IPv4-ACLs for Gigabit Ethernet interfaces:
•
OL-19525-01,Cisco MDS NX-OS Release 4.2(1)
Displays the IP Route Table
Gigabit Ethernet IPv4-ACL Guidelines, page 7-7
Applying IPv4-ACLs on Gigabit Ethernet Interfaces, page 7-8
Only use Transmission Control Protocol (TCP) or Internet Control Message Protocol (ICMP).
Figure
7-1) through the Gigabit Ethernet interface, follow these
Purpose
Enters configuration mode.
Enters the IP subnet (10.100.1.0 255.255.255.0) of the IP host
and configures the next hop 10.1.1.1, which is the IPv4
address of the router connected to the Gigabit Ethernet
interface.
Example
7-2.
Cisco MDS 9000 Family NX-OS IP Services Configuration Guide
Configuring Static IPv4 Routing
7-7