LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2003, 04:55 PM   #31
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31

huh, but i don't have a static ip address, my providers gives me an other ip everytime i log on.. and i can access the net, but only by ips, not urls..
 
Old 02-08-2003, 05:02 PM   #32
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Then DHCP=yes.{Dynamic Host Control Protocol}

Last edited by Allen614; 02-08-2003 at 05:09 PM.
 
Old 02-08-2003, 05:19 PM   #33
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
N_A_J_M. What does your /etc/ppp/ip-up say. Here's mine to save a little time.

#!/bin/sh
#
# This file /etc/ppp/ip-up is run by pppd when there's a
# successful ppp connection.
#
# Put any commands you want run after a successful connection
# in this file.
#
# Any commands you want printed to the screen should be directed
# to: >/dev/tty0
#
# Other commands should not be directed to: >/dev/tty0
#
# The companion file is /etc/ppp/ip-down, it's run when the PPP
# connection ends.
#
# This file is created when you run pppsetup: Sat Feb 1 17:11:44 CST 2003
#
# The environment is cleared before executing this script
# so the path must be reset.
#
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/sbin:/bin
export PATH

# This will print to the screen the local & remote IP address when you
# make a successful ppp connection. $4 = Local IP $5 = Remote IP
#
# The CARRIER speed at which you connected will be reported, if it's in
# the /var/log/messages file. You also need the programs "tail" "cut"
# "tr" "grep" and "syslogd" running for this to work.
# You may have to add S95=46 to your modem init string
# to get your modem to report the DCE = CARRIER speed.
# Example: AT&FS95=46

if [ -s /var/log/messages ] && ( ps xc 2>/dev/null | grep -q syslogd 2>/dev/null ); then
S=`tail -n 30 /var/log/messages 2>/dev/null | grep "CARRIER[^)]" 2>/dev/null | tr -d "^M" 2>/dev/null | cut -d: -f4 2>/dev/null`
echo -n "$S" >/dev/tty0
echo " Local: $4 -> Remote: $5 $1" >/dev/tty0
else
echo " Local: $4 -> Remote: $5 $1" >/dev/tty0
fi

# If you want to ping the other end to keep the connection open.
# The output from ping will goto >/dev/null, you won't see it.
# Ping -i 60 = send ping every 60 seconds to remote = $5.

(ping -i 60 $5 &) >/dev/null 2>&1

# If you want sendmail to send any mail in /var/spool/mqueue when
# you connect, remove the # below.

#sendmail -q

# If you want fetchmail to get your mail when you connect and check
# every 300 seconds = 5 minutes for mail, remove the # below.

#fetchmail -d 300

# End...
 
Old 02-08-2003, 05:21 PM   #34
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
i set it to yes... now i get:
Code:
waiting for ppp()
i didn't have that before

but i see another thing now..

this is a peace of text that i can see when i type: startmodem

Code:
cannot determine ethernet address for proxy ARP
local ip xxx.xxx.xxx.xxx
remote ip xxx.xxx.xxx.xxx
primary dns xxx.xxx.xxx.xxx
secondary dns xxx.xxx.xxx.xxx
connection succeeded

setting up route table
ethernet address... but i'm not even using an ethernet.. or do i misunderstand something?
so i get an ip address from my host...
 
Old 02-08-2003, 05:49 PM   #35
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Do you have an IP address for your ISP?
 
Old 02-08-2003, 05:51 PM   #36
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
the ip of my ISP changes a lot too... i have to dial in to the number 8,35 or something like that, don't really remember anymore
 
Old 02-08-2003, 06:03 PM   #37
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
DNS1=195.238.2.21
DNS2=195.238.2.22
Try putting these in /etc/ppp/resolve.conf
 
Old 02-08-2003, 06:10 PM   #38
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
it allready states

Code:
nameserver 195.238.2.21
nameserver 195.238.2.22
 
Old 02-08-2003, 06:36 PM   #39
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Are you using a dialup or ADSL?
 
Old 02-08-2003, 07:19 PM   #40
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Original Poster
Rep: Reputation: 30
I fixed the b**ch ! i feel a bit bad about the way i did it, but I thought atleast this way i can work at it from the other end!
what i did was re-install slack, without including support for my internal network upon install, so now i can set that up all manually and know exactly what is going on!
(lucky for seperate partitions!)

atleast its all working now, and not routing everything to my nic
 
Old 02-08-2003, 07:51 PM   #41
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Don't feel bad at all. A hammer is my favorite tool too.
 
Old 02-08-2003, 07:57 PM   #42
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Original Poster
Rep: Reputation: 30
haha,yeah that nic should be pleased that its tucked away inside my pc!!! so i cant take to it!
 
Old 02-08-2003, 11:56 PM   #43
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Sorry I had to disappear... Kid's needed to use my computer... the nerve

Glad you got it working.

The great thing about linux is that if something doesn't work, often all you need to do is change a line here or a line there....

The unfortunate thing is that it seems to take a week to figure out which line, in which file, and where your particular distro hides it.

I'm always torn between applauding my perseverance and cursing the time it took to fix it

Hammers look awful good sometimes

later
 
Old 02-09-2003, 05:34 AM   #44
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
i have ADSL so i have to dial in onto a special number (8,35)... it has to be something with my dns.. damn i'm getting irritated
 
Old 02-09-2003, 07:35 AM   #45
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Check /var/log/messages and see if you have any error messages.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link linux ppp client to windows ppp server? cyz Linux - Networking 2 12-11-2008 05:01 AM
Looking for man ppp-on and info ppp-on pages. rvijay Linux - General 1 02-26-2005 08:49 PM
browser plugin for Konqueror web browser (linspire) Tracianddwayne Linux - Newbie 1 01-01-2005 02:15 PM
A Question on Browser Sessions, and Browser Windows: opioid Programming 1 09-23-2004 02:53 PM
gaim browser / default browser question hildog Linux - Newbie 2 10-03-2003 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:32 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
Open Source Consulting | Domain Registration