Solved

Static IP Addess's with mgetty

Posted on 1999-01-13
7
210 Views
Last Modified: 2013-12-15
I run Linux 2.0.33 and have been trying to figure how to asign static IP address's with mgetty spftware.

Any detail on how to set this up would be great.

Thanks
Bob Ross
0
Comment
Question by:bross073097
  • 3
  • 2
  • 2
7 Comments
 
LVL 1

Expert Comment

by:talwyn
ID: 1632139
I don't believe mgetty will do it by itself,  at least my ISP doesn't do it that way.

  You could possibly rewrite the login program to invoke PPP after a successful login.  You couuld do this via Shell or Perl.
The IP address is not assigned until after PPP is invoked on most systems.

--Steve
0
 
LVL 1

Expert Comment

by:talwyn
ID: 1632140
I don't believe mgetty will do it by itself,  at least my ISP doesn't do it that way.

  You could possibly rewrite the login program to invoke PPP after a successful login.  You couuld do this via Shell or Perl.
The IP address is not assigned until after PPP is invoked on most systems.

--Steve
0
 

Author Comment

by:bross073097
ID: 1632141
I already tried the shell to start PPP, only problem is that mgetty needs to run AUTOPPP because of WebTv, it doesn't seem to work from the shell, it needs the PAP first.

I hate to have to tell these people they need to run dedicated for me to do this. Any other Ideas that can help.

Thanks
Bob Ross

0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 4

Expert Comment

by:mcdonc
ID: 1632142
Bob,

I'm not sure I understand.. do you want a static IP to be assigned to the remote end of a dialup connection depending which phone number they call in on?  Or do you want a static IP to be assigned to the remote end of a dialup connection depending on the user who logs in?  Or do you want a static IP to be assigned to the remote end of a dialup connection depending on the actual physical machine they're calling from?


0
 

Author Comment

by:bross073097
ID: 1632143
I have a user that needs a static IP because of the title company they are. I need to be able to asign them a static IP so that every time they log in their machine will be seen as that IP reguardless of the IP on the modem they dialed in on. I have dynamic IPs on all the modems now.

When I tried to set their shell to start a PPP.sh it still only asigned them the IP of the modem they dialed in on even when I set it to give them one.

Thanks
Bob Ross

0
 
LVL 4

Accepted Solution

by:
mcdonc earned 50 total points
ID: 1632144
Mgetty calls pppd with a set of options defined (on RedHat) in both "/etc/ppp/options" and "/etc/ppp/options.ttySx" where x is the ttyS number of the modem device.  Add a line to /etc/ppp/options (if it exists):

ipcp-accept-remote

If /etc/ppp/options does not exist, add the line to each options.ttySx file that exists in /etc/ppp.

Then have the end-user set up a dedicated IP address in dialup networking on the remote machine.

pppd will now accept the user-defined IP address (no matter what it is) during IPCP negotiations.  For machines which do not have a user-defined IP address, it will assign them the address given in options.ttySx

Does this work for you??
0
 

Author Comment

by:bross073097
ID: 1632145
Thank you very much. I new I wasn't missing much.

Thank you
Bob Ross

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now