Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

2 / ИСС / Функции коммутаторов D-Link 3-его уровня и примеры их использования_SMM

.pdf
Скачиваний:
67
Добавлен:
06.02.2016
Размер:
6.28 Mб
Скачать

VRRP: 5/5

:

1.192.168.1.1 192.168.4.4.

2. 192.168.1.1, trace route (tracert) 192.168.4.4.

, L3_A.

3. 1 L3_A,

. 192.168.1.1 192.168.4.4 10 .

4., 192.168.1.1 trace route 192.168.4.4.

, L3_B.

5. 1 L3_A. L3_A

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Internet

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Critical IP:

1/2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VRRP

 

192_168_1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L3_A

L3_B

 

VRRP.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L3_A

 

 

.

 

 

 

 

NAT A

 

 

NAT B

 

 

 

 

 

 

 

 

L3_B

 

 

.

 

 

 

 

192.168.2.1

 

 

 

192.168.3.1

 

 

 

 

 

 

 

 

192_168_2

 

192_168_3

 

NAT_A,

 

 

 

 

 

 

 

192.168.1.x

 

 

 

 

 

2.252

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3.253

L3_A. L3_B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

L3_A

1.252

192_168_1

1.253

 

L3_B

NAT_A

, L3_B

 

 

 

 

 

 

 

 

 

 

192.168.1.x,

 

 

 

 

 

 

 

$ 1

$ 2

 

 

 

 

 

 

 

 

VRRP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L2

 

 

 

 

 

 

 

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Critical IP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NAT

ARP-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IP = 192.168.1.x/24

 

 

 

 

 

 

 

 

 

 

= 192.168.1.252

 

 

 

 

 

30

.

NAT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VRRP

 

.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L3_A

. RIP . VRRP 192_168_1

VRID=252 Critical IP = 192.168.2.1

Internet

Critical IP: 2/2

L3_B

. RIP . VRRP 192_168_1 VRID=252

Critical IP = 192.168.3.1

config vlan default delete 1-12

create vlan vlan2 tag 2

config vlan vlan2 add untag 1-6

create ipif 192_168_1 192.168.1.252/24 vlan2 state enable

create vlan vlan3 tag 3

config vlan vlan3 add untag 7-12

create ipif 192_168_2 192.168.2.252/24 vlan3 state enable

enable rip

config rip all tx_mode v2_only rx_mode v2_only state enable

create vrrp vrid 252 ipif 192_168_1 ipaddress 192.168.1.252 state enable critical_ip 192.168.2.1 critical_ip_state enable

config vlan default delete 1-12

create vlan vlan2 tag 2

config vlan vlan2 add untag 1-6

create ipif 192_168_1 192.168.1.253/24 vlan2 state enable

create vlan vlan3 tag 3

config vlan vlan3 add untag 7-12

create ipif 192_168_3 192.168.3.253/24 vlan3 state enable

enable rip

config rip all tx_mode v2_only rx_mode v2_only state enable

create vrrp vrid 252 ipif 192_168_1 ipaddress 192.168.1.252 state enable critical_ip 192.168.3.1 critical_ip_state enable

enable vrrp

enable vrrp

Internet

Critical IP:

 

NAT A

NAT B

 

210.1.2.1/24

210.1.3.1/24

 

210_1_2

210_1_3

 

2.252

3.253

L3_A 1.252

1 172_19_1

1.253 L3_B

 

 

$ 1

$ 2

VRRP

L2

 

:

 

VRRP

 

172.19.1.0/24

L3_A

L3_B

VRRP.

L3_A .

L3_B .

NAT_A ,

172.19.1.0/24 L3_A. L3_B

.

NAT_A , L3_B

172.19.1.0/24,

.

IP = 172.19.1.1/24= 172.19.1.252

! C

 

 

 

 

 

 

 

 

 

 

 

 

 

IP = 192.168.4.x/24

 

 

 

 

 

 

 

 

192_168_4

 

 

 

 

 

 

 

 

 

= 192.168.4.254

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4.254

 

 

 

 

 

 

 

 

 

 

 

 

L3_C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.254

3.254

 

 

 

 

 

 

 

 

192_168_2

 

 

 

 

192_168_3

 

 

2.252

 

 

 

 

3.253

 

L3_A

1.252

 

 

 

 

1.253

 

L3_B

 

192_168_1

 

 

 

 

 

 

 

 

VRRP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L2

! A ! B

IP = 192.168.1.1~100/24

IP = 192.168.1.101~200/24

 

 

 

 

 

= 192.168.1.252

 

= 192.168.1.253

VRRP: 1/5

VRRP 192_168_1 L3_A L3_B VRRP.

A VRID = 252. 192.168.1.252

L3_A .

L3_B

.

B VRID=253.

192.168.1.253

L3_B .

L3_A

.

L3_A L3_B,

L3

.

,

,

.

VRRP: 2/5

L3_C

. RIP .

config vlan default delete 1-18

create vlan vlan2 tag 2

config vlan vlan2 add untag 1-6

create ipif 192_168_2 192.168.2.254/24 vlan2 state enable

create vlan vlan3 tag 3

config vlan vlan3 add untag 7-12

create ipif 192_168_3 192.168.3.254/24 vlan3 state enable

create vlan vlan4 tag 4

config vlan vlan4 add untag 13-18

create ipif 192_168_4 192.168.4.254/24 vlan4 state enable

enable rip

config rip all tx_mode v2_only rx_mode v2_only state enable

L3_A

. RIP . VRRP 192_168_1 VRID=252

VRID=253

VRRP: 3/5

L3_B

. RIP . VRRP 192_168_1 VRID=253

VRID=252

config vlan default delete 1-12

config vlan default delete 1-12

create vlan vlan2 tag 2

create vlan vlan2 tag 2

config vlan vlan2 add untag 1-6

config vlan vlan2 add untag 1-6

create ipif 192_168_1 192.168.1.252/24 vlan2 state enable

create ipif 192_168_1 192.168.1.253/24 vlan2 state enable

create vlan vlan3 tag 3

create vlan vlan3 tag 3

config vlan vlan3 add untag 7-12

config vlan vlan3 add untag 7-12

create ipif 192_168_2 192.168.2.252/24 vlan3 state enable

create ipif 192_168_3 192.168.3.253/24 vlan3 state enable

enable rip

enable rip

config rip all tx_mode v2_only rx_mode v2_only state

config rip all tx_mode v2_only rx_mode v2_only state

enable

enable

create vrrp vrid 252 ipif 192_168_1 ipaddress

create vrrp vrid 252 ipif 192_168_1 ipaddress

192.168.1.252 state enable

192.168.1.252 state enable

create vrrp vrid 253 ipif 192_168_1 ipaddress

create vrrp vrid 253 ipif 192_168_1 ipaddress

192.168.1.253 state enable

192.168.1.253 state enable

enable vrrp

enable vrrp

 

 

 

 

 

 

L3_A

 

L3_B

 

VRRP:

4/5

DGS-3324SR:4# show vrrp

 

DGS-3324SR:4# show vrrp

 

 

Global VRRP

: Enabled

 

Global VRRP

: Enabled

 

 

Non-owner response PING: Disabled

 

Non-owner response PING: Disabled

 

 

Interface Name

: 192_168_1

 

Interface Name

: 192_168_1

 

 

Authentication type

 

: No Authentication

 

Authentication type

 

: No Authentication

 

 

VRID

: 252

 

 

VRID

: 252

 

 

 

Virtual IP Address

: 192.168.1.252

 

Virtual IP Address

: 192.168.1.252

 

 

Virtual MAC Address

: 00-00-5E-00-01-FC

 

Virtual MAC Address

: 00-00-5E-00-01-FC

 

 

Virtual Router State

: Master

 

Virtual Router State

: Backup

 

 

State

: Enabled

 

State

: Enabled

 

 

Priority

: 255

 

 

Priority

: 100

 

 

 

Master IP Address

: 192.168.1.252

 

Master IP Address

: 192.168.1.252

 

 

Critical IP Address

: 0.0.0.0

 

Critical IP Address

: 0.0.0.0

 

 

Checking Critical IP

: Disabled

 

Checking Critical IP

: Disabled

 

 

Advertisement Interval : 1 secs

 

Advertisement Interval : 1 secs

 

 

Preempt Mode

 

: True

 

Preempt Mode

 

: True

 

 

Virtual Router Up Time : 6782215 centi-secs

 

Virtual Router Up Time : 6786620 centi-secs

 

 

VRID

: 253

 

 

VRID

: 253

 

 

 

Virtual IP Address

: 192.168.1.253

 

Virtual IP Address

: 192.168.1.253

 

 

Virtual MAC Address

: 00-00-5E-00-01-FD

 

Virtual MAC Address

: 00-00-5E-00-01-FD

 

 

Virtual Router State

: Backup

 

Virtual Router State

: Master

 

 

State

: Enabled

 

State

: Enabled

 

 

Priority

: 100

 

 

Priority

: 255

 

 

 

Master IP Address

: 192.168.1.253

 

Master IP Address

: 192.168.1.253

 

 

Critical IP Address

: 0.0.0.0

 

Critical IP Address

: 0.0.0.0

 

 

Checking Critical IP

: Disabled

 

Checking Critical IP

: Disabled

 

 

Advertisement Interval : 1 secs

 

Advertisement Interval : 1 secs

 

 

Preempt Mode

 

: True

 

Preempt Mode

 

: True

 

 

Virtual Router Up Time : 6782215 centi-secs

 

Virtual Router Up Time : 6786620 centi-secs

 

 

Total Entries: 2

 

 

 

Total Entries: 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VRRP: 5/5

:

1.PC_A (192.168.1.1, = 192.168.1.252) PC_B (192.168.1.101, =

192.168.1.253) PC_C (192.168.4.4, = 192.168.4.254).

2.

“tracert”,

 

,

PC_A

 

L3_A,

PC_B

 

L3_B.

3. 1 ( L3_A), PC_A PC_B

PC_C, L3-B.

4. 1 2 (

L3_B), PC_A PC-B PC_C,

L3_A.

5. 2 (, L3_A L3_B ). PC_A PC_B PC_C. PC_A L3_A; PC_B L3_B.

VRRP:

! C

 

 

 

 

 

 

 

 

 

 

 

 

 

IP = 210.1.4.1/24

 

 

 

 

 

 

 

 

210_1_4

 

 

 

 

 

 

 

 

 

= 210.1.4.254

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4.254

 

 

 

 

 

 

 

 

 

 

 

 

L3_C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.254

3.254

 

 

 

 

 

 

 

 

172_19_2

 

 

 

 

172_19_3

 

 

2.252

 

 

 

 

3.253

 

L3_A

1.252

 

 

 

 

1.253

 

L3_B

 

10_1_1

 

 

 

 

 

 

 

 

 

 

 

 

VRRP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L2

! A

! B

IP = 10.1.1.1/8

IP = 10.1.1.1.101/8

 

 

 

 

 

 

= 10.1.1.252

 

= 10.1.1.253

VRRP 10_1_1 L3_A L3_B VRRP.

A VRID = 2. 10.1.1.252

L3_A .

L3_B

.

B VRID = 3. 10.1.1.253

L3_B .

L3_A

.

L3_A L3_B,

L3

.

,

,

.