LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 03-18-2003, 04:33 AM   #1
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 30
DSL router with non static external ip


hello

I have a router for a dsl connection. i have connected few pc to it on a switch. everything works fine. the only problem is, that the external IP changes from time to time (due to disconnects from the ISP, or reseting the router and stuff).

how could i possibly write a program/script with/without SNMP (supported by the router) to determinate the external IP (i thougt of some kind of polling) and in case of a change notify myself of that change (so that I always know the external IP of my router)?

i have no clue what SNMP can do and how to use it.

any help is appreciated.

thanks

raven
 
Old 03-18-2003, 06:09 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 465

Rep: Reputation: 38
first use...
snmpwalk x.x.x.x public

to see the list of variables in the router, then use...
snmpget x.x.x.x public zzz.zzz

to get whatever variable(zzz.zzz) from the router
 
Old 03-18-2003, 06:51 AM   #3
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Original Poster
Rep: Reputation: 30
if I do that, i get a tiemout. i am sure snmp is running on the router, and of cource i know the internal ip of it.

is snmp listening on a specific port? i might have closed that port...

thanks

raven
 
Old 03-18-2003, 07:15 AM   #4
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 465

Rep: Reputation: 38
port 161 i think, also check that the router's snmp id is set to "public".
 
Old 03-18-2003, 07:16 AM   #5
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Original Poster
Rep: Reputation: 30
it is set to "public".

I will have to check the port settings. thanks so far.

raven
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SBC DSL, Static IP's, and My Routerbox floog Linux - Networking 7 05-03-2005 03:57 PM
DSL via router: DHCP or static IP? Sinope Linux - Newbie 5 08-08-2004 04:18 PM
Two DSL lines - Two static IP - Three NICS - can I capitolize? fmotta Linux - Networking 1 03-14-2003 10:42 AM
Static IP configuration for DSL(pppoe) Nic Slackware 1 03-06-2003 03:50 PM
DSL/ Linksys DSL Router/ Linux cant see the network... Robert0380 Linux - Networking 9 04-03-2002 04:09 AM


All times are GMT -5. The time now is 08:35 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration