CodePudding user response:
First understand IP is three layers of communication, it needs to route, in different network segment, there are two ways, by means of layer 3 switches or routers,(1) using layer 3 switches routing
The SWITCH
IP routing
Vlan 2-3
Int vlan 2
IP add 192.168.2.1 255.255.255.0
Int vlan 3
IP add 10.79.206.1 255.255.255.0
Vlan 4
The add IP 192.168.0.1 255.255.255.0
Int g0/.two survivors
Sw mo acc
Sw acc vlan 2
Int g0/0/3
Sw mo acc
Sw acc vlan 3
Int g0/0/4
Sw earth-sized acc
Sw acc vlan 4
(2) use the router's routing
The ROUTER:
1
int g0/0/1.Encapsulation dot1Q 2
IP add 192.168.2.1 255.255.255.0
2
int g0/0/1.Encapsulation dot1Q 3
IP add 10.79.206.1 255.255.255.0
1
int g0/0/1.Encapsulation dot1Q 3
The add IP 192.168.0.1 255.255.255.0
The SWITCH
Int g0/0/1
Sw mo tr
Sw tr en
Vlan 2-3
Int g0/.two survivors
Sw mo acc
Sw acc vlan 2
Int g0/0/3
Sw mo acc
Sw acc vlan 3
Int g0/0/4
Sw mo acc
Sw acc vlan 4
CodePudding user response:
Look at the single-arm routing