MSTP BPDU Guard の設定
この項では、MSTP BPDU Guard を設定する方法について説明します。
Router# configure
Router(config)# l2vpn bridge group bg1
Router(config-l2vpn-bg)# bridge-domain bd1
Router(config-l2vpn-bg-bd)# int TenGigE 0/0/0/7
Router(config-l2vpn-bg-bd-ac)# root
Router(config)# spanning-tree mst m0
Router(config-mstp)# interface tenGigE 0/0/0/7
Router(config-mstp-if)# portfast bpduguard
Router(config-mstp-if)# root
Router(config)# int tenGigE 0/0/0/7 l2transport
Router(config-if-l2)# commit
MSTP BPDU Guard を使用した実行コンフィギュレーション
!
Configure
l2vpn
bridge group bg1
bridge-domain bd1
interface TenGigE0/0/0/7
!
spanning-tree mst m0
interface TenGigE0/0/0/7
portfast bpduguard
!
interface TenGigE0/0/0/7
l2transport
!
MSTP BPDU Guard の確認
MSTP BPDU Guard が設定されていることを確認します。
/* Verify the MSTP BPDU Guard configuration */
Router# show interfaces tenGigE 0/0/0/7
Wed Nov 9 09:23:56.268 UTC
TenGigE0/0/0/7 is error disabled, line protocol is administratively down
Interface state transitions: 2
Hardware is TenGigE, address is 7cad.7425.c8c8 (bia 7cad.7425.c8c8)
Layer 2 Transport Mode
MTU 1514 bytes, BW 10000000 Kbit (Max: 10000000 Kbit)
reliability 255/255, txload 0/255, rxload 0/255
Encapsulation ARPA,
Full-duplex, 10000Mb/s, link type is force-up
output flow control is off, input flow control is off
Carrier delay (up) is 10 msec
loopback not set,
Last link flapped 00:00:49
Last input 00:00:40, output 00:00:40
Last clearing of "show interface" counters never
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
38752 packets input, 4611429 bytes, 0 total input drops
1 drops for unrecognized upper-level protocol
Received 1 broadcast packets, 38751 multicast packets
0 runts, 0 giants, 0 throttles, 0 parity
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort