Apparent IP configuration change . . .
FreeBSD users: Until recently I've been running a very low-maintenance FreeBSD router with FBSD 6.2. The IP setup was a dynamic IP configuration with Verizon as my DSL provider in NJ. The connection was virtually trouble-free. I switched to a static IP about 10 days ago and the IP configuration no longer works. The modem for both IP configurations is a Westell 6100 modem running a Bridge protocol for both connections. When I plug the modem directly into the FreeBSD box or a Windows box and let the modem act as a router, the connection comes up with no problem. But when I configure the modem to act as a transparent bridge connection so the FreeBSD box can function as the router, the network connection is unavailable even though the PPP connection is up (according to the modem interface). I'm thinking that there has been a change on the provider end because of the conversion to a static IP, but I can't figure out how to set up the PPP connection in the the ppp.conf file. Here's what worked for the dynamic IP connection: verizon: set device PPPoE:rl0 set authname xxx set authkey xxx add default HISADDR Here's what I've set up for the static IP connection: verizon: set device PPPoE:rl0 set authname xxx set authkey xxx add default HISADDR set ifaddr 70.0.0.54 70.0.0.1 255.255.255.255 0.0.0.0 The rc.conf file is standard for setting up a PPP connection. Is a different setup required to configure a static IP to work with FreeBSD? Any feedback would be much appreciated. Thanks in advance. -- John Williams ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
script advice
Dear List, I have a requirement for a maximum of one user logged in at any given time. Following is a .profile script I wrote to enforce the requirement. The problem is that when the script runs, sometimes the user trying to login is identified as logged in and sometimes he/she is not identified as logged in. I.e., there is a race condition between script execution and login completion. Any advice for how to make it work properly? The brute force way is to loop on waiting for the user to be logged in, as identified by the who command, and then check the time of the login so as not to be confused if the user is already logged in. Is there a better way? Thanks! bash-2.04$ cat ./.profile #!/usr/local/bin/bash # # Logout user if other user is logged in # shopt -s -o nounset # Global Declarations declare -rx SCRIPT=${0##*/} declare USERS # # Logout User if Any Existing Users $who USERS=`$who | $wc -l` printf %s existing users on this machine\n $USERS if [ $USERS -gt 0 ] ; then printf logging out\n logout fi # # End of Script # ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to set backquote on PC keyboard telneting to FREEBSD
Dear LIst, i'm sure this is simple ... I am using a PC to telnet to a FreeBSD system. The backquote key does not work. I believe the STTY command is used to set the backquote key on FreeBSD. Can anyone tell me the STTY command syntax to do this?? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]