Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

2pc through router

I have 2 PC's connected to 2 individual Eathernet ports of the same router. 1st PC ip is 172.17.20.5/24 and 2nd pc ip is 172.17.20.8/24. How and what commands do we enter in router to make this two pc to communicate.

3 REPLIES
Cisco Employee

Re: 2pc through router

Is the sole purpose of this exercise to provide connectivity between the two PCs. If so, I think you'd be better off using a hub or a switch.

If you really want to connect these two stations using a router, you will probably need to change the ip address of one of the two and configure a default gateway pointing at the router.

The config on the router should be pretty straightforward:

in e0

ip address 172.17.20.1 255.255.255.0

int e1

ip address 172.17.21.1 255.255.255.0

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: 2pc through router

Thanks for your reply... the solution what you had mentioned will work. But i was doing this in a LAB envirolment and i want the above setup to work. So, pls help me how to do this.

Cisco Employee

Re: 2pc through router

If you want this to work without changing the setup on the workstations, you can bridge between the two Ethernet ports:

int e0

bridge-group 1

int e1

bridge-group 1

That should do it.

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
90
Views
0
Helpful
3
Replies
CreatePlease to create content