If you do not configure a vro, you can connect multiple network segments. Specifically for the following situations:
1. As the network becomes more complex, the Local Area Network is a network segment. Later, multiple network segments were divided as needed, but it was troublesome to modify IP addresses and gateways one by one because many machines.
2. the egress router cannot add a static route for the dummies, and can only perform NAT for the local direct connection CIDR block.
3. a lazy person or a lazy person with a poor route.
Topology:
1. In VLAN 10, the IP address of PC1 is 192.168.10.0/24.
2. In VLAN20, the IP address of PC2 is 192.168.20.0/24.
3. In VLAN30, the IP address of the router is 192.168.30.0/24.
4. The switch in the middle is a layer-3 switch or the router does not need VLAN ).
Configuration key points:
1. layer-3 VLAN10 VLAN20 VLAN30 Virtual Interface to start the PROXY-ARP protocol CISCO is enabled by default here is the CISCO device, so the configuration is not reflected ). The configuration is as follows:
! interface FastEthernet3/0 switchport access vlan 10 ! interface FastEthernet3/1 switchport access vlan 20 ! interface FastEthernet3/2 switchport access vlan 30 ! interface Vlan10 ip address 192.168.10.1 255.255.255.0 ! interface Vlan20 ip address 192.168.20.1 255.255.255.0 ! interface Vlan30 ip address 192.168.30.1 255.255.255.0 |
2. The following PC gateway can be set to itself or as a VLAN Virtual Interface gateway.
3. The intranet IP Address Mask Of the egress router must be smaller as long as it can contain the relevant Intranet CIDR blocks. For convenience, 16bit is selected. The IP address is 192.168.30.2/16, and no static routing is required.
The configuration is as follows:
interface FastEthernet2/0 ip address 192.168.30.2 255.255.0.0 duplex auto speed auto R3# show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set C? ? 192.168.0.0/16 is directly connected, FastEthernet2/0 R3# |