Вы находитесь на странице: 1из 18

http://ccieh3c.taobao.

com
ISSUE 1.0

VLAN

VLAN




VLAN


IP





up

www.h3c.com

IP=10.1.1.2/24 IP=10.1.2.2/24
GW=10.1.1.1 GW=10.1.2.1

Hub RTA SWA


E0/0 E0/1
10.1.1.1/24 10.1.2.1/24
E1/0
10.1.3.1/24

IP=10.1.1.3/24 IP=10.1.2.3/24
GW=10.1.1.1 SWB GW=10.1.2.1

IP=10.1.3.2/24 IP=10.1.3.3/24
GW=10.1.3.1 GW=10.1.3.1

www.h3c.com


VLAN

VLAN

E0/0
10.1.1.1/24 E1/0
10.1.3.1/24
E0/1
10.1.2.1/24

VLAN1 VLAN2 VLAN3

IP=10.1.1.2/24 IP=10.1.2.2/24 IP=10.1.3.2/24


GW=10.1.1.1 GW=10.1.2.1 GW=10.1.3.1

VLAN

www.h3c.com
802.1QVLAN
RTA
[RTA-GigabitEthernet0/0]interface GigabitEthernet0/0.1
[RTA-GigabitEthernet0/0.1]ip address 10.1.1.1 255.255.255.0
[RTA-GigabitEthernet0/0.1]interface GigabitEthernet0/0.2
G0/0 [RTA-GigabitEthernet0/0.2]vlan-type dot1q vid 2
[RTA-GigabitEthernet0/0.2]ip address 10.1.2.1 255.255.255.0
[RTA-GigabitEthernet0/0.2]interface GigabitEthernet0/0.3
G0/0.1 [RTA-GigabitEthernet0/0.3]vlan-type dot1q vid 3
10.1.1.1/24 [RTA-GigabitEthernet0/0.3]ip address 10.1.3.1 255.255.255.0

G0/0.2
10.1.2.1/24
802.1Q
G0/0.3 Trunk
10.1.3.1/24


VLAN1 VLAN2 VLAN3

HostA HostB HostC


IP=10.1.1.2/24 IP=10.1.2.2/24 IP=10.1.3.2/24
GW=10.1.1.1 GW=10.1.2.1 GW=10.1.3.1

www.h3c.com
VLAN

VLAN1 VLAN2 VLAN3


10.1.1.1/24 10.1.2.1/24 10.1.3.1/24

VLAN1 VLAN2 VLAN3

IP=10.1.1.2/24 IP=10.1.2.2/24 IP=10.1.3.2/24


GW=10.1.1.1 GW=10.1.2.1 GW=10.1.3.1


VLAN
www.h3c.com


VLAN

[Router]ip route-static dest-address { mask | mask-


length } {gateway-address | interface-type interface-
name } [ preference preference-value ]


interface-type interface-namegateway-
address
IP0.0.0.0

www.h3c.com

RTA RTB RTC RTD
10.2.0.0/24 10.3.0.0/24 10.4.0.0/24
.1 .2 .1 .2 .1 .2

10.1.0.0/24 10.5.0.0/24

PC Server

[RTB]ip route-static 10.1.0.0 255.255.255.0 10.2.0.1


[RTB]ip route-static 10.4.0.0 255.255.255.0 10.3.0.2
[RTB]ip route-static 10.5.0.0 255.255.255.0 10.3.0.2

www.h3c.com

[RTA]ip route-static 0.0.0.0 0.0.0.0 10.2.0.2

[RTD]ip route-static 0.0.0.0 0.0.0.0 10.4.0.1

RTA RTB RTC RTD


10.2.0.0/24 10.3.0.0/24 10.4.0.0/24
.1 .2 .1 .2 .1 .2

10.1.0.0/24 10.5.0.0/24

PC Server

[RTB]ip route-static 10.1.0.0 255.255.255.0 10.2.0.1


[RTB]ip route-static 0.0.0.0 0.0.0.0 10.3.0.2

www.h3c.com

ISP ISP

S0/0 S0/1

RTA

www.h3c.com

RTA
[RTE]ip route-static 10.0.0.0 255.255.0.0 s0/0
10.0.0.0/24

RTB
10.0.1.0/24 RTD
S0/0 S0/0 RTE
RTC
10.0.2.0/24


10.0.255.0/24

[RTD]ip route-static 0.0.0.0 0.0.0.0 s0/0


[RTD]ip route-static 10.0.0.0 255.255.0.0 null0

www.h3c.com

VLAN



www.h3c.com

Вам также может понравиться