LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-06-2008, 10:14 AM   #1
foolio1990
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1, Ubuntu 8.04
Posts: 19

Rep: Reputation: 0
How do you find the IP address of your personal router??


I'm rockin' Slack 12.1 and I have a Cisco 870 wireless router. I know there is a way to find out what the IP address of it is, but I'm not quite sure how. Thanks in advance.
PS: I've tried some default IPs in the browser (192.168.1.1.. So on..)
 
Old 10-06-2008, 10:21 AM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
If you're talking about the internal IP, this should be mentioned in the manual. If you need to know the external IP the router's web interface (if it has one) should be able to tell you, or you can use a service such as WhatIsMyIP.com.
 
Old 10-06-2008, 10:21 AM   #3
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
A router has a minimum of two sides. The side your systems connect to is the default gateway, as you stated, this is 192.168.1.1. The IP on the internet side can be found by looking in the configuration, open a web browser, and put the gateway address in the location bar, press enter. This will connect you to your router. Most are password protected, and have a user ID. You need that to get into the config screesn.

Second way, go to --> http://whatismyip.com/ and it will tell you your IP address. Understand if you run DHCP with your ISP this address will change from time to time.
 
Old 10-06-2008, 10:23 AM   #4
foolio1990
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1, Ubuntu 8.04
Posts: 19

Original Poster
Rep: Reputation: 0
Sorry I wasn't being more thorough. I am looking for my internal IP address. I'm trying to figure out the IP address. I don't know, it. I'm trying to find the manual on the internet right now.
 
Old 10-06-2008, 10:45 AM   #5
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
Quote:
Originally Posted by foolio1990 View Post
Sorry I wasn't being more thorough. I am looking for my internal IP address. I'm trying to figure out the IP address. I don't know, it. I'm trying to find the manual on the internet right now.

If you want to see the internal interface of the router, use this:

sh ip int brief


You could also just look at the gateway configured on your computer.
 
Old 10-06-2008, 11:14 AM   #6
foolio1990
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1, Ubuntu 8.04
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 0.o View Post
If you want to see the internal interface of the router, use this:

sh ip int brief


You could also just look at the gateway configured on your computer.
I tried that in su. it led me to the command ip, it also says /sbin/ip is not executable.

I ran ip addr and it listed the loopback and it listed my ip but it was still my IP I'm on right now, and not the network one that I switch off to. I ran netconfig, set up and restarted the service, not quite sure why it still displays the same IP address.
 
Old 10-06-2008, 11:18 AM   #7
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
try:

ip route


and look for "default"
 
Old 10-06-2008, 11:34 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,958

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
The "sh ip int brief" are the router's internal commands I do believe. You need to connect the router to a serial port to access its configuration. As suggested just configuring your PC for DHCP should automatically set the gateway to the router's internal IP address. The output of the route command will display the IP address.
 
Old 10-06-2008, 11:48 AM   #9
foolio1990
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1, Ubuntu 8.04
Posts: 19

Original Poster
Rep: Reputation: 0
I did configure the PC for DHCP.
 
Old 10-06-2008, 12:53 PM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
I D/L'd its manual from here :
http://www.cisco.com/en/US/docs/rout.../857qseng.html
It looks a nasty piece of kit, compared to my Netgear DG834G.

The only way I can think of finding out its address is like this:

Make a cabled connection from your eth0 port to the router.
Turn off your wireless interface (there's usually a switch, or unplug it)
Execute the following code as root
Code:
ifdown eth0     # in case it was already "up"
dhclient eth0   # ask your router for an IP address
You should see something like this:
Code:
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 10.0.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.1
bound to 10.0.0.133 -- renewal in 32766 seconds
Here, 10.0.0.1 is the LAN IP of my router.
You may well get a different IP number, but it will be the LAN IP of your router.

[Edit] The route command doesn't mention my router's address, but resolv.conf has it:
Code:
tred@vaio:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
link-local      *               255.255.0.0     U     1000   0        0 eth1
default         www.routerlogin 0.0.0.0         UG    100    0        0 eth1
tred@vaio:~$ cat /etc/resolv.conf
nameserver 10.0.0.1
tred@vaio:~$
[/Edit]

Last edited by tredegar; 10-06-2008 at 01:03 PM.
 
Old 10-07-2008, 10:42 AM   #11
foolio1990
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1, Ubuntu 8.04
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks tredegar!

I su'd ifdown eth0, that didn't work, said there was no command.
I tried dhclient eth0, it worked! It gave me the IP of the router, I got into it and configured it! Thanks a bunch. Now I need to know how I can plug this router into the wall here and still get internet access. That might be more of an adventure. Thanks again!
 
  


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
Router gateway address being picked up as primary DNS address under SuSe Hubmasterflex Linux - Networking 13 10-18-2008 02:40 PM
Find real ip address using link local address, mdns/zeroconf dannemanare Linux - Networking 0 01-17-2008 05:31 AM
how to find physical address of kernel virtual address kushneeraj Programming 0 10-20-2006 08:29 PM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 08:55 AM
Can't get IP address on DWL-G520, SuSE 9.1 Personal rustynailz Linux - Wireless Networking 1 11-30-2004 05:28 PM


All times are GMT -5. The time now is 03:49 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