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
45-7
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 45 Configuring IPv4 for Gigabit Ethernet Interfaces
Configuring Static IPv4 Routing
Configuring Static IPv4 Routing
To configure static IPv4 routing (see
Figure 45-1
) through the Gigabit Ethernet interface, follow these
steps:
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 45-2
.
Example 45-2 Displays the IP Route Table
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:
•
Gigabit Ethernet IPv4-ACL Guidelines, page 45-7
•
Applying IPv4-ACLs on Gigabit Ethernet Interfaces, page 45-8
Note
For information on creating IPv4-ACLs, see
Chapter 33, “Configuring IPv4 and IPv6 Access Control
Lists.”
Gigabit Ethernet IPv4-ACL Guidelines
Follow these guidelines when configuring IPv4-ACLs for Gigabit Ethernet interfaces:
•
Only use Transmission Control Protocol (TCP) or Internet Control Message Protocol (ICMP).
Command
Purpose
Step 1
switch#
config terminal
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
ip route
10.100.1.0 255.255.255.0 10.1.1.1
switch(config-if)#
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.