• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 869
  • Last Modified:

How do I setup a router to act as a host in GNS3

Hello All,

I'm trying to setup a router as a host in GNS3 to study for my CCNA.  I'm having some trouble I'm hoping you can help out with.

I'm doing the following to setup the router as a host:
config t
hostname PC1
no ip routing
interface fa1/0
ip address

When I try to input the IP address, I get a message:
IP address may not be configured on L2 Links

If I input the following, it will take the IP address, but I don't know if I should be doing this:
config t
interface fa1/0
no switchport

Any help would be greatly appreciated.

  • 2
1 Solution
What exactly are you trying to accomplish? The no switchport command turns the interface into layer 3 only. This usually is done between routers and the other end of the connection will need to be in the same subnet.
ndalmolin_13Author Commented:
I have a router with a 16 port switch module in it.  I have disabled routing on that router and I'm using it as a layer 2 switch.  I want to configure two routers as PCs.  The first Router/PC will be addressed:  The second will be addressed (both in the same subnet).  I just want to get basic layer 2 connectivity between the two PCs.
AkinsdNetwork AdministratorCommented:
What you have is most likely a layer 3 switch. A model would confirm that.
If so, you will need to turn off switchport on any port you desire to use and then configure IP address on the port
Int fa0/1
No switchport
IP address
ndalmolin_13Author Commented:
That's what I thought
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now