Web Hosting Talk







View Full Version : Configure Linux after switching switch.


Fremont Servers
10-21-2001, 12:49 AM
I just replaced Linksys with cisco catalyst 2429-xl-en switch.

I connected a cable from cisco catalyst 2429-xl-en switch to my pc (windows), and it worked fine.

When I did the same to my other pc (running linux), it failed to work. Does anyone have a solution to this?

I rebooted the computer, but that didn't solve the problem.

JTY
10-21-2001, 01:22 AM
Hrmm.. did you try a different port?

The port may have been configured for something or disabled by software... so you should check the IOS configuration.

slade
10-21-2001, 01:23 AM
There shouldn't be any configuration to do on the catalyst 2924's, unless you're doing something special, or gonna be monitoring/managing it via TCPIP. Likewise, I don't know of anything that would need to change on the linux box.

Is it a used switch? Perhaps some information has been programmed into it, and some ports are disabled, or set as part of a different vlan?

Oh, and you do mean 2924, or am I mistaken?

Did anything else change? (router, dhcp)

Does the light come on when you plug the linux box in? (bad cable?)

Does the light go out when you remove the ethernet cable? (Might be bad port)

Did you try reversing both connections? (Plug the windows pc into the port you plugged the linux box into, and "visca versca")

Fremont Servers
10-21-2001, 02:11 AM
PC running Linux...I tried it on several different ports, but no luck.

I used a pc (running windows) to test several ports on the switch, and they all worked fine.

This is a used cisco catalyst 2924-xl-en, not catalyst 2429-xl-en.
I made a mistake on my previous post.

I took all the cables that were connected to Linksys, and plugged them to cisco catalyst 2924-xl-en switch. ( Instead of connecting the cables from computers to Linksys, they are now from computers to cisco catalyst 2924-xl-en switch.) I did nothing else.

I just did a clean installation of RH 7.1 to my laptop. After the installation, it failed to connect.

I don't think the cable is bad. Before I installed RH 7.1 to my laptop. it was running Windows ME. I didn't have problem connecting to the internet via cisco catalyst 2924-xl-en switch on my Windows based laptop. Half hour ago, I replaced Windows ME with Linux, and it failed to connect with a Linux based laptop.

I don't see light from the ports that are connected to my pc (running linux) and laptop (running linux). The ports that have lights are those connected to pc ( running windows).

I tried reversing the connections ( like what you said), but it too didn't work.

Any clue?

Fremont Servers
10-21-2001, 05:19 AM
Let me take one part back.

There is green light on the pc running linux.
I am about to ping 127.0.0.1

I tried to ping yahoo.com and its IP, but I couldn't.
I tried to ping other domain names, but failed.

JTY
10-21-2001, 10:05 AM
Run /sbin/ifconfig on your laptop to verify that it has valid network settings

Fremont Servers
10-21-2001, 04:50 PM
Xircom Realport ( network card) on the laptop doesn't light up. I believe Linux doesn't recognize the Xircom Realport ( network card) .

I typed in the command: /sbin/ifconfig
for both: laptop (running linux) and pc (running linux)
They both have the same output below

=================
lo Link encap: Local loopback
inet addr:127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
=================

Is it possible to reinstall the software of cisco catalyst 2924-xl-en to its original. Like use Hyperterminal to get into the switch (cisco catalyst 2924-xl-en), and reinstall the software. Since this is a used cisco catalyst 2924-xl-en, I believe the configuration inside the switch has been altered. I want to be able to have the configuration and/or the software inside it to be like the original.
If so, does it cost to get the software or it is free to download at cisco website?

davidb
10-21-2001, 04:58 PM
well, from that output, it appears that nothing is configured. There are no ip address's listed. This could be a number of problems.

Fremont Servers
10-21-2001, 05:06 PM
Also, if the outside of the switch works fine, do I need to worry about the inside configuration & software?

Outside is 24 ports, power, and anything you can see from the outside the switch.

Inside is not open the switch to check the hardware inside, but I mean the configuration and software that are installed inside the switch.

I am asking this because I have 7 days to return the switch if there is any problem.

Fremont Servers
10-21-2001, 05:16 PM
Normally, on a running linux server, if I replace a router with another router or a switch with another switch, will there be a problem like this? Or it will automatically recognize a new router in a few seconds if a router is replaced? Same thing to the switch. If a new switch is replaced with an old switch, will it recognize the new switch in a few seconds?

JTY
10-21-2001, 08:12 PM
It should recognize it within seconds...

It appears your linux boxen need to have their ethernet ports configured... since there is no entry for eth0

Fremont Servers
10-22-2001, 04:40 AM
Is it possible to reinstall the software of cisco catalyst 2924-xl-en to its original. Like use Hyperterminal to get into the switch (cisco catalyst 2924-xl-en), and reinstall the software. Since this is a used cisco catalyst 2924-xl-en, I believe the configuration inside the switch has been altered. I want to be able to have the configuration and/or the software inside it to be like the original.
If so, does it cost to get the software or it is free to download at cisco website?

slade
10-22-2001, 07:17 AM
Yes, you can return the switch to default settings, however this shouldn't be necessary(and certainly doesn't seem to be the case right now).

Your output from /sbin/ifconfig shows that your Xircom nic is NOT enabled. I have no idea as to whether it is actually supported, but you should have an entry for it in the output from /sbin/ifconfig showing stats similar to lo(loopback).

You pretty much proved there was nothing* wrong with the switch when you moved cables around and windows pcs worked and the linux laptop(?) did not.

*nothing: In this case, that simple configurations of nic's in pcs should work.

Fremont Servers
10-22-2001, 07:32 AM
I just added eth0.

/sbin/ifconfig

=================
eth0 Link encap: Ethernet HWaddr 00:01:02:71:A4:DB
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:13292 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
Interrupt:11 Base address:0xd480

lo Link encap: Local loopback
inet addr:127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
=================

I still couldn't access the internet.

Any clue?

While waiting for a respond, I will play around with it.

Fremont Servers
10-22-2001, 07:41 AM
I tried to Activate eth0, and I got this in the terminal.

Determining IP information for eth0...

After 30 seconds, it gave me this.

Determining IP information for eth0...Operation failed.
failed

JTY
10-22-2001, 09:30 AM
And, it's useing DHCP?

slade
10-22-2001, 09:07 PM
Yeah, are you running DHCP on the network? (Either a real server, or Windows 98 ICS)

If not, you'll have to specify the IP address (forgot how) (I love DHCP)

Fremont Servers
10-22-2001, 10:17 PM
Yes, I setted eth0 to dhcp.