Configuring Mac Address Accounting - Juniper JUNOS 10.1 - CONFIGURATION GUIDE 1-2010 Configuration Manual

Network interfaces configuration
Table of Contents

Advertisement

JUNOS 10.1 Network Interfaces Configuration Guide
Configure a two-color policer and apply it to an interface:

Configuring MAC Address Accounting

For Gigabit Ethernet IQ and Gigabit Ethernet PICs with SFPs (except the 10-port
Gigabit Ethernet PIC and the built-in Gigabit Ethernet port on the M7i router), you
can configure whether source and destination MAC addresses are dynamically learned.
To configure MAC address accounting, include the
[edit interfaces interface-name gigether-options ethernet-switch-profile]
To prohibit the interface from dynamically learning source and destination MAC
addresses, include the
interface-name gigether-options ethernet-switch-profile]
MAC address learning is based on source addresses. You can start accounting for
traffic after it has been sent from the MAC address. Once the MAC address is learned,
the frames and bytes transmitted to or received from the MAC address can be tracked.
796
Configuring MAC Address Accounting
peak-burst-size 300;
}
}
[edit interfaces ge-1/1/0]
unit 1 {
layer2-policer {
input-three-color three-color-policer-color-blind;
output-three-color three-color-policer-color-aware;
}
}
[edit firewall]
policer two-color-policer {
logical-interface-policer;
if-exceeding {
bandwidth-percent 90;
burst-size-limit 300;
}
then loss-priority-high;
}
[edit interfaces ge-1/1/0]
unit 2 {
layer2-policer {
input-policer two-color-policer;
output-policer two-color-policer;
}
}
[edit interfaces interface-name gigether-options ethernet-switch-profile]
mac-learn-enable;
no-mac-learn-enable
[edit interfaces interface-name gigether-options ethernet-switch-profile]
no-mac-learn-enable;
mac-learn-enable
statement at the
statement at the
[edit interfaces
hierarchy level:
hierarchy level:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos 10.1

Table of Contents