Hi there,
Ok first off, if the switch has been reset to factory defaults then you don't need to do anything with the VLAN's. All of the ports are already set to the administrative VLAN 1.
Now for your question, to connect the router to the switch all you have to do is just connect the router with a straight cable to one of the switch ports. What I usually do is connect the router to port fa0/23 or fa0/24 on the switch.
I then go into the switch and set the following:
switch>en
switch#>conf t
switch(config)>int fa0/23
switch(config-if)speed 100
switch(config-if)duplex full
Then go to the router and set the ethernet port as follows:
router>en
router#>conf t
router(config)int eth0/0
router(config-if)speed 100
router(config-if)duplex full
router(config-if)no shut
The VLAN1 ip address can be any ip address for the subnet you are using. It's for remote administration, e.g. telnet, http, ssh. I would not set it to the same ip address that you are using for your router as that will cause problems on you network.
One more thing, if you have set up vlan's, make sure that the switch port your router is connected to is set to the same vlan as all of the other ports you wish to access the internet with.
I will be glad to answer any other questions that I can for you.
Good luck and happy networking
|