LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2007, 03:08 PM   #1
foysol_bgd
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
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.
 
Old 02-03-2007, 10:25 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,124

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
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.
 
Old 02-04-2007, 04:01 PM   #3
foysol_bgd
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 02-04-2007, 09:49 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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 .
 
Old 02-04-2007, 11:52 PM   #5
foysol_bgd
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Farslayer,

I like to make it hard coded. Speed 100 and Duplex full. Can I configure my NIC card in linux? Thanks.
 
Old 02-05-2007, 07:19 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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.

Last edited by farslayer; 02-05-2007 at 07:21 PM.
 
Old 02-07-2007, 07:19 PM   #7
foysol_bgd
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy flash from cisco 2950 router to another one that has no flash bladerunner12120 Linux - Software 12 09-09-2008 05:01 PM
How can I reset the password on a cisco switch? abefroman Linux - Networking 6 11-04-2005 07:45 AM
Cisco 1548M Micro switch~will it work? How? bmike1 Linux - Hardware 0 06-14-2004 11:28 AM
TACACS+, Cisco router/switch authentication sancho5 Linux - Networking 2 03-28-2003 03:22 AM


All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration