Step-by-Step Router and VPC Configuration with Ping Test
This guide walks through configuring three routers (R1, R2, R3) and two virtual PCs in a simulated network, displaying interface IPs, routing tables, and verifying connectivity with a ping test, all illustrated with command outputs and topology images.
Experiment Topology
Configure R1
Router(config)</code>
<code>R1(config)</code>
<code>R1(config-if)</code>
<code>R1(config-if)</code>
<code>R1(config-if)</code>
<code>R1(config)</code>
<code>R1(config)View Interface IPs on R1
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 192.168.12.1 YES manual up up
Ethernet0/1 192.168.1.254 YES manual up up
Ethernet0/2 unassigned YES unset administratively down down
Ethernet0/3 unassigned YES unset administratively down down
Serial1/0 unassigned YES unset administratively down down
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down downView R1 Routing Table
Codes: L - local, 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, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Ethernet0/1
L 192.168.1.254/32 is directly connected, Ethernet0/1
S 192.168.3.0/24 [1/0] via 192.168.12.2
192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.12.0/24 is directly connected, Ethernet0/0
L 192.168.12.1/32 is directly connected, Ethernet0/0
S 192.168.23.0/24 [1/0] via 192.168.12.2Configure R2
Router>enable</code>
<code>Router</code>
<code>Router(config)</code>
<code>R2(config)</code>
<code>R2(config-if)</code>
<code>R2(config-if)</code>
<code>R2(config-if)</code>
<code>R2(config)</code>
<code>R2(config)View Interface IPs on R2
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 192.168.12.2 YES manual up up
Ethernet0/1 192.168.23.2 YES manual up up
Ethernet0/2 unassigned YES unset administratively down down
Ethernet0/3 unassigned YES unset administratively down down
Serial1/0 unassigned YES unset administratively down down
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down downView R2 Routing Table
Codes: L - local, 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, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
S 192.168.1.0/24 [1/0] via 192.168.12.1
S 192.168.3.0/24 [1/0] via 192.168.23.3
192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.12.0/24 is directly connected, Ethernet0/0
L 192.168.12.2/32 is directly connected, Ethernet0/0
192.168.23.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.23.0/24 is directly connected, Ethernet0/1
L 192.168.23.2/32 is directly connected, Ethernet0/1Configure R3
Router>enable</code>
<code>Router</code>
<code>Router(config)</code>
<code>R3(config)</code>
<code>R3(config-if)</code>
<code>R3(config-if)</code>
<code>R3(config-if)</code>
<code>R3(config)</code>
<code>R3(config)View Interface IPs on R3
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 192.168.23.3 YES manual up up
Ethernet0/1 192.168.3.254 YES manual up up
Ethernet0/2 unassigned YES unset administratively down down
Ethernet0/3 unassigned YES unset administratively down down
Serial1/0 unassigned YES unset administratively down down
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down downView R3 Routing Table
Codes: L - local, 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, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
S 192.168.1.0/24 [1/0] via 192.168.23.2
192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.3.0/24 is directly connected, Ethernet0/1
L 192.168.3.254/32 is directly connected, Ethernet0/1
S 192.168.12.0/24 [1/0] via 192.168.23.2
192.168.23.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.23.0/24 is directly connected, Ethernet0/0
L 192.168.23.3/32 is directly connected, Ethernet0/0Configure VPC4
VPCS> ip 192.168.1.2/24 192.168.1.254</code>
<code>Checking for duplicate address...</code>
<code>VPCS : 192.168.1.2 255.255.255.0 gateway 192.168.1.254Configure VPC5
VPCS> ip 192.168.3.2/24 192.168.3.254</code>
<code>Checking for duplicate address...</code>
<code>VPCS : 192.168.3.2 255.255.255.0 gateway 192.168.3.254Ping Test from VPC4 to VPC5
VPCS> ping 192.168.3.2</code>
<code>84 bytes from 192.168.3.2 icmp_seq=1 ttl=61 time=0.958 ms</code>
<code>84 bytes from 192.168.3.2 icmp_seq=2 ttl=61 time=0.785 ms</code>
<code>84 bytes from 192.168.3.2 icmp_seq=3 ttl=61 time=1.050 ms</code>
<code>84 bytes from 192.168.3.2 icmp_seq=4 ttl=61 time=0.823 ms</code>
<code>84 bytes from 192.168.3.2 icmp_seq=5 ttl=61 time=0.827 msSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
