Current location - Quotes Website - Collection of slogans - How to configure ospf for two PCs with one router and one switch in ensp?
How to configure ospf for two PCs with one router and one switch in ensp?
In ensp, there is a router and a switch. The ospf configuration method is as follows: the configured host bit is 1 and the network bit is 3, so the mask is 24, and then the router or switch is replaced by a three-layer switch, which can be adapted by the method of single-arm routing configuration.

First, we need to Ping a few more times. If you can't Ping the gateway first and then ping it, you need to check whether the port is Ethernet. Or GE, if it's Ethernet? So we use E0/0/0? Otherwise we will use G0/0/0. That is, the mask: 255.255.255.0. The figure shows the IP configuration of four PCs. Swiith0 and Router0 are connected through No.0, and the configured IP is192.168.122.254.

In the configuration of ensp, one router and one switch ospf, as-sw 1 and as-sw2 are two access layer switches, which are respectively connected to some terminal PCs, as-sw 1 is connected to users of vlan 10, and as-sw2 is connected to users of vlan20.

Core-sw 1 and core-sw2 are two core switches with three-layer routing function, which are gateways for vlan 10 and vlan20 users respectively. The two core switches adopt VLAN 12 to realize three-layer docking, and OSPF is deployed on the two core switches to make the routes of the whole network interoperable.

This can be configured. The route to 192. 168.20.0/24 has been known through core-sw 1 OSPF, and core-sw2 can also be known through OSPF to192.168./kloc-0.