LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-02-2007, 08:10 AM   #1
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
Question Get IP address


i am working in software development side. i am not much familiar in networking area. i want small help.
i am using Ubuntu Linux. i connected my pc to a switch. i want to telnet that switch. but i don't know that switch ip address. how can i get that ip address?
 
Old 09-02-2007, 08:48 AM   #2
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,138

Rep: Reputation: 49
Switches are usually dumb as a stick. They don't have an IP, and you can't telnet to them. You're thinking of a router.

Last edited by oskar; 09-02-2007 at 09:03 AM.
 
Old 09-02-2007, 09:26 AM   #3
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Yes a switch can have a telnet port like a smart switch like a 3com 3300 switch can be access with a web browser and telnet access. The only way to find if you don't know the ip is use a tool like nmap to scan the entire segment of the IP's used. For example if say your current IP is 192.168.1.32 and a subnet of 255.255.255.0 then this is a class C address and you can scan all 255 IPs ranging from 192.168.1.1 to 192.168.1.255. With nmap it has and OS type detection map that may identify the OS the device is using. The fingerprinting it uses is not perfect but gets close. There are serveral gui interfaces for nmap if console use is not your thing.

Brian
 
Old 09-02-2007, 09:56 AM   #4
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,138

Rep: Reputation: 49
I stand corrected.
 
Old 09-02-2007, 09:56 AM   #5
ikehack
LQ Newbie
 
Registered: Aug 2007
Location: East Stroudsburg, PA
Distribution: Slackware 12, Debian
Posts: 6

Rep: Reputation: 0
Yeah, as Brian1 said you might want to "trial and error" with nmap. But if it's a switch and doesn't have an IP Address isn't it more than likely controlled via serial I/O? As in you need to hook up to the switch via serial connection and configure it that way.
 
Old 09-02-2007, 11:42 AM   #6
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Post the brand and model of the switch and we can all see what it is and not.

Brian
 
Old 09-02-2007, 02:32 PM   #7
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Brand: cisco
Cisco 1900 Series switch

* any way i am very thankful for your attention. i got this switch from my friend and i am using this switch in my home for sharing internet connection. if you think this is some kind of mess then just tell me, i will drop this part.
because just i try to configure some thing in this switch. but if you get any idea i will glade to all of you.
-thanks again.

Last edited by jeyram; 09-02-2007 at 02:50 PM.
 
Old 09-02-2007, 02:40 PM   #8
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
dont you now its wan port IP ?
 
Old 09-02-2007, 02:42 PM   #9
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
how is this connected to your network ?
 
Old 09-02-2007, 02:55 PM   #10
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
ok..the switch probably does not have an IP address, unless it is actually a router (not for you if it is cisco 1900 !!). To find out, just run a tracert *win or 'traceroute' on *nix from your desktop machine to the any outside server. It will list all nodes with assigned ip numbers that are visited along the path from your desktop to the outside server.

Last edited by soroccoheaven; 09-02-2007 at 02:58 PM.
 
Old 09-02-2007, 03:54 PM   #11
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
So many different models using the 1900 reference. If it came from someone else and you don't know the IP then it could be anything. If it has a serial port then you would have to turn it off, connect to the serial port with a null serial cable I beleieve, and start a terminal serial client app, turn on the switch and try making connection. The exact steps I don't know. Should be able to find all that info from cisco site. That is if it has a serial port.

Brian
 
Old 09-02-2007, 10:04 PM   #12
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
thanks Brain,
i used console cable and i assigned new ip address.
thank you very much to all of you.
-jeyram

Last edited by jeyram; 09-02-2007 at 10:14 PM.
 
Old 09-03-2007, 10:18 AM   #13
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Glad to be of help. Just out of curiosty what was the old IP anything close to you network IP range?

Brian
 
Old 09-05-2007, 01:42 PM   #14
jeyram
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
i don't know my old ip address.
if you use console cable you can reset any thing(password also).
i found this way in some ccna certifications slides.

Last edited by jeyram; 09-05-2007 at 01:52 PM.
 
Old 09-05-2007, 01:49 PM   #15
TBKDan
Member
 
Registered: Dec 2005
Location: NY, USA
Distribution: Ubuntu
Posts: 44

Rep: Reputation: 16
From what I remember, you don't have to reset the switch/router to connect via serial. Just connect the null cable, start up your client, and just hit enter... you should get the prompt
 
  


Reply

Tags
as, client, connected, connection, correct, do, far, if, ip, looking, machine, machines, please, specific


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
Router gateway address being picked up as primary DNS address under SuSe Hubmasterflex Linux - Networking 13 10-18-2008 02:40 PM
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-09-2007 12:16 AM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 10:33 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM


All times are GMT -5. The time now is 01:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration