Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to enable a new Cisco 1811 to work with SDM? 2

Status
Not open for further replies.

Logmaster

Technical User
Jan 2, 2006
31
US


Hi,

Let me start by saying that I am a newbie and I am trying to learn as fast as I can. I have searched if someone has posted similar questions in the past however I couldn't find anything that is similar.


I just got the 1811 router and I am trying to config it. I would like to config the router using SDM however I can't get to the point of being able to assign an IP address to the computer that is connected to the router.

In order to config the router, I have connected a cable from FastEthernet2 to my Laptop's NIC and have also connected the console cable. I manage to connect to the router's IOS using HyperTerminal.

What I have tried to do is:
1. Enabled FastEthernet2 with no IP assignment.
2. Configured Vlan0 (as far as I understand, this is the default VLAN for FastEthernet ports - please correct me if I am wrong) by typing the following
vlan database

interface Vlan1
description [Management]
ip address 192.168.0.1 255.255.255.0

Then I have enabled FastEthernet2 and
typed the following under the config section of that port:
switchport access vlan 1

I clicked on CTRL+Z twice

I have also tried to enable the http server:
ip http server
ip http port 8080
ip http authentication local
ip http secure-server




I have tried to set a static ip on my laptop with 192.168.0.1 as the gateway. I have tried to ping the router without any success. I have also tried to
enter 192.168.0.1 as the router's address at the initial screen of SDM however it couldn't find the server.



I am not sure if all the steps that I have made make sense if there are missing steps. Could you please provide me with your feedback on what I have do and why it might not work?

Thanks,
Joe
 
Hi,

I did this once but i remembered that i put the router in the same ip address subnet, ex;

router:
ip addr 192.168.0.2

pc:
ip addr 192.168.0.3

i used a linksys switch between the router and the PC, try this and see if you can ping the router from the pc, also don't forget to do "no shut" in the router interface, the interface has to be up.

hope this help.


 
Yemaya, hi

Thanks for your reply. I have used the no shut command for FastEthernet2 and the status light of it is on.

I have a few questions regarding your suggestion:
1. When you say that you put a switch between the router and the PC, did you use straight or crossover cable from the router to the switch?

2. When you refer to the router's ip address that you set, are you talking about setting up an IP address using a VLAN that is associated with the internet port connected to the Switch or is there another way to do it?

Thanks again,
Joe
 
Well, is the cable a crossover cable? And VLANs are configured in switches---and I know this has a switch module in it (8 port, I think). But for basic connectivity, connect the fastethernet port to the laptop with a crossover cable, not a regular straight-through ethernet cable. Then set bthe IP address of the laptop to be in the same subnet as the router's fastethernet port. To initially configure the router, you need to console to it. Then the commands are as follows (this is assuming you set the laptop to 192.168.0.1)...
router>en
router#conf t
router(config)#fa2 (or it may be fa0/2)
router(config-if)#ip add 192.168.0.2 255.255.255.0
router(config-if)#no shut (this command is VERY important)
router(config-if)#exit
router(config)#ip http server
router(config)#ip http authentication local
Now this next line is important, because you may be able to find the router, but you cannot log in with SDM without this next command...make the username and password anything you want...
router(config)#username blablabla priv 15 password heyman
Instead of password, you can be more secure by using a 1-way hash encryption (called MD5, or message-digest) by substituting the word "password" with the word "secret", like so...
router(config)#username blablabla priv 15 secret heyman
The priv 15 command sets the privelege of the user to the highest (all access) level there is in Cisco. Good luck.

Burt
 
Hi;

Code:
1. When you say that you put a switch between the router and the PC, did you use straight or crossover cable from the router to the switch?

If you used a switch, use straight but if you don't use one, then crossover.

Code:
2. When you refer to the router's ip address that you set, are you talking about setting up an IP address using a VLAN that is associated with the internet port connected to the Switch or is there another way to do it?

as a burt said:
Code:
router>en
router#conf t
router(config)#fa2 (or it may be fa0/2)
router(config-if)#ip add 192.168.0.2 255.255.255.0
router(config-if)#no shut (this command is VERY important)
router(config-if)#exit
then use 192.168.0.3 for the pc and try to ping the router, if you got responce, complete the router configuration to access the router using SDM described before by burt.

I used a 4 port linksys switch but if you don't have one and want to use one from cisco like 2924, 2950 etc then you have to setup vlan1 in the same subnet (192.168.0.x/24)

Hope this help.
 
Yemaya and burtsbees, hi

Thanks for your detailed replies. I have tried to follow the instructions but the part that doesn't work for me is the part where I assign ip address to the port.

I don't know if it makes any difference however after entering the config mode, the fa2 command didn't work (I have also tried fa0/2). I managed to get into the por config by typing: interface FastEthernet2.

I managed to enable the port however when I have tried to assign the IP using the following command: router(config-if)#ip add 192.168.0.2 255.255.255.0 I got the following error message: "IP addresses may not be configured on L2 links". I have tried to google this error message and it looks like I have to configure a VLAN and associate the port with this LAN. Is that correct?

What's the best way to assign the IP address to the port?

Regards,
Joe
 
Then it is an ethernet interface you need to config, like e1 or e2...the fastethernet interfaces are all part of e1 and e2, ports 1-4 being part of e1 and 5-8 are part of e2. The ethernet (e1 and e2) interfaces control their respective four fastethernet ports.
The fastethernet ports in your router are layer two interfaces, and the layer three connectivity lies within the ethernet interface, not fastethernet.
router(config)#int e1 (or e2)
router(config-if)#ip add 192.168.0.1 255.255.255.0
router(config-if)#no shut
You can configure VLANs through the fastethernet ports if you want, but it is not necessary.

Burt
 
Hi,

Thanks for your invaluable help. I have managed to connect to SDM under the running-config however for some reason the copy running-config startup-config doesn't save the configuration to NVRAM. I am going to post a seperate thread since it's this issue got nothing to do with SDM.

I have given starts to all the people who helped here. THANKS!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top