Solved

Static IP Addess's with mgetty

Posted on 1999-01-13
7
212 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
awk file 6 77
awk to variable in bash 2 69
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 61
Syslog-ng works. Now what? How to filter and manage? 8 57
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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…
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.

808 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