LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux and Cisco switch 2950 (https://www.linuxquestions.org/questions/linux-newbie-8/linux-and-cisco-switch-2950-a-525067/)

foysol_bgd 02-02-2007 03:08 PM

Linux and Cisco switch 2950
 
Hi,

I have a questions on Linux-- I will be happy if you can answer.

I am trying to connect a Linux machine to Network. I am positive the network card is fine as I tested it to connect another PC via cross-over cable. Now I want to connect that PC to a Cisco switch 2950. I was not able to connect it. The switch have no configuration at all except Vlan 1.

With the same IP addressing I was able to connect a Windows PC to network not a Linux PC. Is there any necessary thing I am missing out? I can connect a windows PC but I want to connect Linux so I can learn it Better. By the way, I am using KDE for X window. I have configured eth0 IP address and Default-gateway as same like the Windows XP and activate it even though it is not working.



Thanks.

Regards,
Fazlur.

camorri 02-03-2007 10:25 AM

Are you using a known good straight through cable between the linux system and the switch? A cross over cable will not work.

If yes, connect the linux system. Look at the lights for the lan card. Are they normal when connected?

Open a konsole and run the command /sbin/ifconfig and post the results.

foysol_bgd 02-04-2007 04:01 PM

Problem Solved
 
Hi,

I have configured the Cisco switch 2950 to speed Auto and duplex auto and it is working fine now. By the way, is there any command in Linux I can use to Fix up my NIC to run Full duplex and Speed 100? thanks.

Regards,
Fazlur.

farslayer 02-04-2007 09:49 PM

If the switch and NIC are both set to auto-negotiate (which IS the default setting for both), they should automatically negotiate FULL Duplex @ 100Mb/s .

foysol_bgd 02-04-2007 11:52 PM

Farslayer,

I like to make it hard coded. Speed 100 and Duplex full. Can I configure my NIC card in linux? Thanks.

farslayer 02-05-2007 07:19 PM

I know you want to set em manually, but I'll give these resources anyways. I see no good reason to force settings when auto-negotiation is working, it will usually just cause problems down the road if you move the host to a different switch port or network..
Cisco: Why do Autonegotiation
Ethernet Auto-negotiation
Duplex Mismatch

Having said that...

You can use ethtool or mii-tool to check or change the settings of your card.

For a more permanent solution that will work at boot time, maybe your NIC supports something like the following options:

i.e. the Intel Pro 1000 card allows you to put the settings in the modules.conf..
http://downloadmirror.intel.com/df-s...htm#add_config
Code:

As an example, if you install the e1000 driver for two PRO/1000 adapters (eth0 and eth1)
 and set the speed and duplex to 10full and 100half, add the following to modules.conf
or /etc/modprobe.conf:

    alias eth0 e1000
    alias eth1 e1000
    options e1000 Speed=10,100 Duplex=2,1

The 3com Driver allows similar options..
http://support.3com.com/infodeli/too...90fxreadme.txt
Code:

The 3C990 driver supports the following options, which can be
    supplied as command line arguments to the insmod command or in the
    configuration file. Configuration file on RedHat 6.x is
    /etc/conf.modules file. Configuration file on RedHat 7.x is
    /etc/modules.conf

    Unless otherwise stated, all settings take the form of:
           
    force=value [,value ]
       
    value can be
        1) 0        [10 Megabit Half Duplex]
        2) 1        [10 Megabit Full Duplex]
        3) 2        [100 Megabit Half Duplex]
        4) 3        [100 Megabit Full Duplex]
        5) 4        [Default option: Auto]

Maybe your cards driver allows a similar method of setting the speed and duplex ?

Best of luck to ya.

foysol_bgd 02-07-2007 07:19 PM

Farslayer,

Thanks for the info. mii-tool works fine for me. Even though auto-negotiation is not a problem Just want to learn it works or not. Appreciate the time you have taken to increase my knowledge.

Regards,
Fazlur.


All times are GMT -5. The time now is 01:04 AM.