■解説
interface GigaEthernet1.0 vlan-type port VLAN1 port 1 vlan-type port VLAN2 port 2
インタフェース
GigaEthernet1.0
にポートVLAN
(vlan-type port
)を設定します。ポート
VLAN
設定(vlan-type port
)では、論理VLAN
インタフェースと各スイッチポートの割当てを行います。本設定例では、スイッチポート
1
をVLAN1
インタフェース に、スイッチポート2
をVLAN2
インタフェースに割り当てます。14. 冗長構成
14.1. VRRP を使用してルータを冗長化する
VRRP
を使用して、同一LAN
内の複数のルータを冗長化する設定を説明します。■接続構成
■設定概要
以下の設定を行います。
・
VLAN
インタフェース設定・
VRRP
設定GE1.0
Serial0
(((
モバイル 通信事業者 インターネット サービスプロバイダ
3G/LTE 192.168.1.0/24
GE0.0
端末A
PPPoE
装置A
装置B UNIVERGE
WA1510
GE1.0
VRRP グループ:ID=1
VRRP 仮想IPアドレス:192.168.1.254
VRRP プライオリティ:
装置A(WA2610-AP)Priority=20 装置B(WA1020) Priority=10 VRRP グループ:ID=2
VRRP 仮想IPアドレス:192.168.2.254
VRRP プライオリティ:
装置A(WA2610-AP)Priority=20 装置B(WA1020) Priority=10
データ通信端末 UNIVERGE
WA2610-AP TagVLAN
0
TagVLAN 0 VLAN対応
SW-HUB
端末B
VRRP ID=2 VRRP ID=1
192.168.2.0/24
■設定(コンフィグ作成バージョン:
Ver7.5.4
)[
装置A:WA2610-AP
設定]
! hostname WA2610-AP
! ppp profile pppoe
authentication username test@example.net authentication password plain test
! interface GigaEthernet0.0 no ip address
encapsulation PPPoE0 no shutdown
! interface GigaEthernet1.0
vlan-type tagged VLAN1 tag-id 10 vlan-type tagged VLAN2 tag-id 20 no ip address
no shutdown
! interface PPPoE0 ip address ipcp ppp profile pppoe auto-connect ip napt enable no shutdown
! interface Loopback0.0 ip address 127.0.0.1/8 no shutdown
! interface VLAN1
ip address 192.168.1.253/24 vrrp 1 ip 192.168.1.254 vrrp 1 priority 20
no shutdown
! interface VLAN2
ip address 192.168.2.253/24 vrrp 2 ip 192.168.2.254 vrrp 2 priority 20
no shutdown
! ip route default PPPoE0
! proxy-dns ip enable
proxy-dns server default PPPoE0 ipcp
! vrrp enable
!
[
装置B:WA1510
設定]
! hostname WA1510
! no wireless-adapter enable
! ppp profile mobile
authentication username test authentication password plain test
! interface GigaEthernet1.0
vlan-type tagged VLAN1 tag-id 10 vlan-type tagged VLAN2 tag-id 20 no ip address
no shutdown
! interface Loopback0.0 ip address 127.0.0.1/8 no shutdown
! interface Serial0 ip address ipcp ppp profile mobile ip napt enable
mobile id PPP 1 example.net mobile number *99***CID#
auto-connect no shutdown
! interface VLAN1
ip address 192.168.1.252/24 vrrp 1 ip 192.168.1.254 vrrp 1 priority 10
no shutdown
! interface VLAN2
ip address 192.168.2.252/24 vrrp 2 ip 192.168.2.254 vrrp 2 priority 10
no shutdown
! ip route default Serial0
! proxy-dns ip enable
proxy-dns server default Serial0 ipcp
! vrrp enable
!
■解説
[
装置A:WA2610-AP
設定] interface GigaEthernet1.0
vlan-type tagged VLAN1 tag-id 10 vlan-type tagged VLAN2 tag-id 20
インタフェース
GigaEthernet1.0
にタグVLAN
を設定します。タグVLAN
設定(vlan-type tagged
)では、論理VLAN
インタフェースとtag-id
(VID
)の割当てを行います。本設定例では、タグ
ID:10
を論理インタフェースVLAN1
に、タグID:20
を論理インタフェース
VLAN2
に割当てます。interface VLAN1
ip address 192.168.1.253/24 vrrp 1 ip 192.168.1.254 vrrp 1 priority 20
インタフェース
VLAN1
でVRRP
を動作させます。実
IP
アドレスは”192.168.1.253”
に設定します。VRRP
グループID
は”1”
とし、VRRP
仮想IP
アドレスは”192.168.1.254”
に設定します。VRRP
プライオリティを”20”
に設定します。装置Bより優先度を高くすることにより、正常時は装置Aが
VRRP
グループ1のマスタルータとなります。interface VLAN2
ip address 192.168.2.253/24 vrrp 2 ip 192.168.2.254 vrrp 2 priority 20
インタフェース
VLAN2
でVRRP
を動作させます。実
IP
アドレスは”192.168.2.253”
に設定します。VRRP
グループID
は”2”
とし、VRRP
仮想IP
アドレスは”192.168.2.254”
に設定します。VRRP
プライオリティを”20”
に設定します。装置Bより優先度を高くすることにより、正常時は装置Aが