
6.
show mac-accounting type location instance
DETAILED STEPS
Purpose
Command or Action
Enters XR configuration mode.
configure
Example:
Step 1
RP/0/RP0/CPU0:router# configure
Physical interface or virtual interface.
interface
[
TenGigE
|
fastethernet
]
interface-path-id
Step 2
Example:
Use the
show interfaces
command to see a list
of all interfaces currently configured on the
router.
Note
RP/0/RP0/CPU0:router(config)# interface TenGigE
0/1/0/0
For more information about the syntax for the router, use
the question mark (
?
) online help function.
Assigns an IP address and subnet mask to the interface.
ipv4 address ip-address mask
Step 3
Example:
• Replace
ip-address
with the primary IPv4 address for
the interface.
RP/0/RP0/CPU0:router(config-if)# ipv4 address
172.18.189.38 255.255.255.224
• Replace
mask
with the mask for the associated IP
subnet. The network mask can be specified in either
of two ways:
• The network mask can be a four-part dotted
decimal address. For example, 255.0.0.0 indicates
that each bit equal to 1 means that the
corresponding address bit belongs to the network
address.
• The network mask can be indicated as a slash (/)
and number. For example, /8 indicates that the
first 8 bits of the mask are ones, and the
corresponding bits of the address are network
address.
Generates accounting information for IP traffic based on
the source and destination MAC addresses on LAN
interfaces.
mac-accounting
{
egress
|
ingress
}
Example:
RP/0/RP0/CPU0:router(config-if)# mac-accounting
egress
Step 4
• To disable MAC accounting, use the
no
form of this
command.
Saves configuration changes.
Do one of the following:
Step 5
•
end
• When you issue the
end
command, the system prompts
you to commit changes:
•
•
commit
Uncommitted changes found, commit them before
Example:
exiting(yes/no/cancel)?
[cancel]:
RP/0/RP0/CPU0:router(config-if)# end
Interface and Hardware Component Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
37
Configuring Ethernet Interfaces
Configuring MAC Accounting on an Ethernet Interface