Re: i can't get ppp running

2007-08-29 Thread Nikos Vassiliadis
On Tuesday 28 August 2007 19:25, [EMAIL PROTECTED] wrote:
 Nikos Vassiliadis wrote:
  On Tuesday 28 August 2007 13:48, [EMAIL PROTECTED] wrote:
  What does configuring the modem in bridging mode means?
 
  =
 = =ppp.conf   
  =
  =
 =
 
  default:
set device PPPoE:rl0
set MTU 1492
set MRU 1492
set crtscts off
set speed sync
#set timeout 0
#set redial 0 0
enable lqr
#disable deflate
#disable pred1
#disable vjcomp
#disable acfcomp
#disable protocomp
set log Phase tun LCP IPCP CCP Warning Error Alert
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
add default HISADDR
#enable proxy
#nat enable yes
#nat log yes
#nat same_ports yes
#nat unregistered_only yes
#nat deny_incoming yes
  dsl:
set login
set authname [EMAIL PROTECTED]
set authkey asd12345
 
  This configuration file has several irrelevant settings.
  Try the one below, it's from here:
  /usr/share/examples/ppp/ppp.conf.sample
  I just added set authname  set authkey,
  changed the NIC's name and removed the service name.
 
  pppoe:
   set authname your_username
   set authkey your_password
   set device PPPoE:rl0
   enable lqr echo
   set cd 5
   set dial
   set login
   set redial 0 0
 
  [snip]
 
  =
 = ===sysctl.conf   
  
  =
 =
 
  net.link.ether.bridge.config=rl0:0,ed0:0
  net.link.ether.bridge.ipfw=1
  net.link.ether.bridge.enable=1
  net.inet.ip.forwarding=1
 
  This has nothing to do with modem bridging mode.
  This bridges your two ethernet segments. Disable it if
  that's not what you want.
 
  =
 = =ppp.log   
  ==
  =
 =
 
  Aug 28 03:58:21 cp ppp[786]: Phase: Using interface: tun0
  Aug 28 03:58:21 cp ppp[786]: Phase: deflink: Created in closed state
  Aug 28 03:58:21 cp ppp[786]: tun0: Phase: PPP Started (interactive
  mode). Aug 28 03:58:22 cp ppp[801]: Phase: Using interface: tun1
  Aug 28 03:58:22 cp ppp[801]: Phase: deflink: Created in closed state
  Aug 28 03:58:22 cp ppp[802]: tun1: Phase: PPP Started (auto mode).
  Aug 28 03:59:40 cp ppp[786]: tun0: Phase: bundle: Establish
  Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: closed - opening
  Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: Connected!
  Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: opening - dial
  Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: dial - carrier
  Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Disconnected!
  Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: carrier - hangup
  Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Connect time: 5
  secs: 0 octets in, 0 octets out
 
  ^^
  Zero octets in and zero octets out. Is your modem in bridging mode?
  It may be called rfc1483. Enable it.
 
  check what goes on with tcpdump:
  root:0:/# tcpdump -nli rl0
  tcpdump: verbose output suppressed, use -v or -vv for full protocol
  decode listening on rl0, link-type EN10MB (Ethernet), capture size 96
  bytes 14:34:54.863275 PPPoE PADI [Host-Uniq 0xC0656EC3] [Service-Name]
  14:34:56.862997 PPPoE PADI [Host-Uniq 0xC0656EC3] [Service-Name]
  14:34:59.969272 PPPoE PADI [Host-Uniq 0xC00CFAC3] [Service-Name]
 
  This is not what you should see, you should see PADO and the rest.
  If that's what you see, your modem is probably not in bridging mode.
 
  [snip]
 
  Hope this helps
 
  Nikos

 I've tried your ppp.conf with the same results. Also, articles
 explicitly told me not to use set dial.

set dial may be irrelevant. It may be used to set dial script
to , e.g. to erase a previously set dial script, which is correct
since you don't need a dial script for PPPoE. Anyway, it doesn't
hurt.

 The tcpdump test displays PADI! OK, so not in bridging more?

No, PADI is your request for initiating a PPPoE connection.
You should see an offer(PADO). Something like this:
09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]
09:18:01.731345 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]
09:18:01.731694 PPPoE PADO [AC-Name iris.teledomenet.gr] [Service-Name] 
[Service-Name *] [Host-Uniq 0x04000700] [AC-Cookie 0x80DEECC3]
09:18:01.731772 PPPoE PADR [Service-Name] [Host-Uniq 0x04000800] 
[AC-Cookie 0x80DEECC3]
09:18:01.731786 PPPoE PADS [ses 0x46] [AC-Name iris.teledomenet.gr] 
[Service-Name] [Host-Uniq 0x04000800] [AC-Cookie 0x80DEECC3]
09:18:01.732322 PPPoE  [ses 0x46] LCP, Conf-Request (0x01), id 22, length 18

Re: i can't get ppp running

2007-08-29 Thread deeptech71

Nikos Vassiliadis wrote:
 The tcpdump test displays PADI! OK, so not in bridging more?

 No, PADI is your request for initiating a PPPoE connection.
 You should see an offer(PADO). Something like this:
 09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]
 09:18:01.731345 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]
 09:18:01.731694 PPPoE PADO [AC-Name iris.teledomenet.gr] [Service-Name] 
[Service-Name *] [Host-Uniq 0x04000700] [AC-Cookie 0x80DEECC3]
 09:18:01.731772 PPPoE PADR [Service-Name] [Host-Uniq 0x04000800] 
[AC-Cookie 0x80DEECC3]
 09:18:01.731786 PPPoE PADS [ses 0x46] [AC-Name iris.teledomenet.gr] 
[Service-Name] [Host-Uniq 0x04000800] [AC-Cookie 0x80DEECC3]

 09:18:01.732322 PPPoE  [ses 0x46] LCP, Conf-Request (0x01), id 22, length 18
 09:18:01.736886 PPPoE  [ses 0x46] LCP, Conf-Request (0x01), id 0, length 19
 09:18:01.737145 PPPoE  [ses 0x46] LCP, Conf-Reject (0x04), id 0, length 9
 09:18:01.747045 PPPoE  [ses 0x46] LCP, Conf-Reject (0x04), id 22, length 8


I get only things like this (without -v or -vv):
09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]

Like 3 of these lines. Just that. No PADO and nothing else whatsoever.

 The modem is a Dialcom ADSL Bridge 1600, which sound like some bridge,
 duh. I've searched for information about this product, there is no
 support for it. Dialcom sells these things to ISPs only I think. There's
 supposed to be a web interface to it, but I couldn't get in there yet.

 Well, it's not optional to check the modem's settings:)
 The two settings you have to configure for bridging are:
 1) enable bridging:)
 2) correct virtual circuit, you have to use correct VPI/VCI.
You should get this from your ISP.

 Perhaps your modem has DHCP. Try dhclient rl0. If you do get
 an address on your rl0, then do a route -n get default and
 try to connect to the gateway using a web browser.

 I would also set the modem to factory defaults. At least
 then you will know some settings. Most modems have a little
 button which can be pressed using a pin. I understood that
 you did get the modem second-hand.

 My hungarian is not very good these days. But you can see IP addresses etc
 http://oldradio.tesla.hu/szetszedtem/039adslmodemek/004dialcom/dialcom.htm


Yes, I think I can google too. About that button, I don't ever have to press it 
until I really fuck up something in the settings. I did exactly what was told 
there to get the web interface page, but I got none. Now I'm gonna try that 
FreeBSD method.


 One important thing. FreeBSD is a good piece of software. If a hardware
 router can establish a PPPoE connection, why can't FreeBSD do the same
 thing? What does my hardware router have what FreeBSD doesn't?

 Because your modem is probably not configured correctly. FreeBSD sends
 requests, but doesn't get any answers back. FreeBSD is widely tested
 with PPPoE, both in server and client environments.


I mean

LAN]--[Microsoft Windows XP w/ routing]--[Dialcom ADSL Bridge]--[line //WORKS
LAN][Corega BAR SD hardware router]--[Dialcom ADSL Bridge]--[line //WORKS
LAN]--[FreeBSD software router]--[Dialcom ADSL Bridge]--[line //SUCKS :)

What does FreeBSD suck at?

Thanks

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't get ppp running

2007-08-29 Thread Nikos Vassiliadis
On Wednesday 29 August 2007 12:15, [EMAIL PROTECTED] wrote:
 Nikos Vassiliadis wrote:
   The tcpdump test displays PADI! OK, so not in bridging more?
  
   No, PADI is your request for initiating a PPPoE connection.
   You should see an offer(PADO). Something like this:
   09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq
   0x04000700] 09:18:01.731345 PPPoE PADI [Service-Name]
   [Host-Uniq 0x04000700] 09:18:01.731694 PPPoE PADO [AC-Name
   iris.teledomenet.gr] [Service-Name]

 [Service-Name *] [Host-Uniq 0x04000700] [AC-Cookie 0x80DEECC3]

   09:18:01.731772 PPPoE PADR [Service-Name] [Host-Uniq
   0x04000800]

 [AC-Cookie 0x80DEECC3]

   09:18:01.731786 PPPoE PADS [ses 0x46] [AC-Name iris.teledomenet.gr]

 [Service-Name] [Host-Uniq 0x04000800] [AC-Cookie 0x80DEECC3]

   09:18:01.732322 PPPoE  [ses 0x46] LCP, Conf-Request (0x01), id 22,
   length 18 09:18:01.736886 PPPoE  [ses 0x46] LCP, Conf-Request (0x01),
   id 0, length 19 09:18:01.737145 PPPoE  [ses 0x46] LCP, Conf-Reject
   (0x04), id 0, length 9 09:18:01.747045 PPPoE  [ses 0x46] LCP,
   Conf-Reject (0x04), id 22, length 8

 I get only things like this (without -v or -vv):
 09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]

 Like 3 of these lines. Just that. No PADO and nothing else whatsoever.

OK, once again, no replies from the outside world...
FreeBSD sends requests, but doesn't get any replies.


   The modem is a Dialcom ADSL Bridge 1600, which sound like some
   bridge, duh. I've searched for information about this product, there
   is no support for it. Dialcom sells these things to ISPs only I
   think. There's supposed to be a web interface to it, but I couldn't
   get in there yet.
  
   Well, it's not optional to check the modem's settings:)
   The two settings you have to configure for bridging are:
   1) enable bridging:)
   2) correct virtual circuit, you have to use correct VPI/VCI.
  You should get this from your ISP.
  

1) do this:
   Perhaps your modem has DHCP. Try dhclient rl0. If you do get
   an address on your rl0, then do a route -n get default and
   try to connect to the gateway using a web browser.

2) post your network configuration, that is:
ifconfig -u
netstat -rnfinet

I asked in previous mail what's the purpose of ipfw and bridge.
Can you disable them? at least for testing purposes.

   Because your modem is probably not configured correctly. FreeBSD
   sends requests, but doesn't get any answers back. FreeBSD is widely
   tested with PPPoE, both in server and client environments.

 I mean

 LAN]--[Microsoft Windows XP w/ routing]--[Dialcom ADSL Bridge]--[line
 //WORKS LAN][Corega BAR SD hardware router]--[Dialcom ADSL
 Bridge]--[line //WORKS LAN]--[FreeBSD software router]--[Dialcom
 ADSL Bridge]--[line //SUCKS :)

 What does FreeBSD suck at?

I know FreeBSD PPPoE doesn't suck for sure. Also, if FreeBSD
doesn't work for you, that doesn't have to mean it's broken.

Nikos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't get ppp running

2007-08-29 Thread Bahman M.
Once I had a similar problem on a Linux box (send OK/no receive) and
after days of playing with settings and configurations I found that
the problem was the network _cable_. I replaced the cable and it went
fine without any additional configurations.

Hope this helps.

Bahman

On 8/29/07, Nikos Vassiliadis [EMAIL PROTECTED] wrote:
 On Wednesday 29 August 2007 12:15, [EMAIL PROTECTED] wrote:
  Nikos Vassiliadis wrote:
The tcpdump test displays PADI! OK, so not in bridging more?
   
No, PADI is your request for initiating a PPPoE connection.
You should see an offer(PADO). Something like this:
09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq
0x04000700] 09:18:01.731345 PPPoE PADI [Service-Name]
[Host-Uniq 0x04000700] 09:18:01.731694 PPPoE PADO [AC-Name
iris.teledomenet.gr] [Service-Name]
 
  [Service-Name *] [Host-Uniq 0x04000700] [AC-Cookie 0x80DEECC3]
 
09:18:01.731772 PPPoE PADR [Service-Name] [Host-Uniq
0x04000800]
 
  [AC-Cookie 0x80DEECC3]
 
09:18:01.731786 PPPoE PADS [ses 0x46] [AC-Name iris.teledomenet.gr]
 
  [Service-Name] [Host-Uniq 0x04000800] [AC-Cookie 0x80DEECC3]
 
09:18:01.732322 PPPoE  [ses 0x46] LCP, Conf-Request (0x01), id 22,
length 18 09:18:01.736886 PPPoE  [ses 0x46] LCP, Conf-Request (0x01),
id 0, length 19 09:18:01.737145 PPPoE  [ses 0x46] LCP, Conf-Reject
(0x04), id 0, length 9 09:18:01.747045 PPPoE  [ses 0x46] LCP,
Conf-Reject (0x04), id 22, length 8
 
  I get only things like this (without -v or -vv):
  09:17:56.744957 PPPoE PADI [Service-Name] [Host-Uniq 0x04000700]
 
  Like 3 of these lines. Just that. No PADO and nothing else whatsoever.

 OK, once again, no replies from the outside world...
 FreeBSD sends requests, but doesn't get any replies.

 
The modem is a Dialcom ADSL Bridge 1600, which sound like some
bridge, duh. I've searched for information about this product, there
is no support for it. Dialcom sells these things to ISPs only I
think. There's supposed to be a web interface to it, but I couldn't
get in there yet.
   
Well, it's not optional to check the modem's settings:)
The two settings you have to configure for bridging are:
1) enable bridging:)
2) correct virtual circuit, you have to use correct VPI/VCI.
   You should get this from your ISP.
   

 1) do this:
Perhaps your modem has DHCP. Try dhclient rl0. If you do get
an address on your rl0, then do a route -n get default and
try to connect to the gateway using a web browser.

 2) post your network configuration, that is:
 ifconfig -u
 netstat -rnfinet

 I asked in previous mail what's the purpose of ipfw and bridge.
 Can you disable them? at least for testing purposes.

Because your modem is probably not configured correctly. FreeBSD
sends requests, but doesn't get any answers back. FreeBSD is widely
tested with PPPoE, both in server and client environments.
 
  I mean
 
  LAN]--[Microsoft Windows XP w/ routing]--[Dialcom ADSL Bridge]--[line
  //WORKS LAN][Corega BAR SD hardware router]--[Dialcom ADSL
  Bridge]--[line //WORKS LAN]--[FreeBSD software router]--[Dialcom
  ADSL Bridge]--[line //SUCKS :)
 
  What does FreeBSD suck at?

 I know FreeBSD PPPoE doesn't suck for sure. Also, if FreeBSD
 doesn't work for you, that doesn't have to mean it's broken.

 Nikos
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't get ppp running

2007-08-29 Thread deeptech71

Bahman M. wrote:

Once I had a similar problem on a Linux box (send OK/no receive) and
after days of playing with settings and configurations I found that
the problem was the network _cable_. I replaced the cable and it went
fine without any additional configurations.

Hope this helps.

Bahman


Thank for the suggestion, I've got PPP!

I too don't know why but I've switched cables and some of them worked for ppp, 
some of them didn't. But for basic network flow, they all work. WTF?


Nikos Vassiliadis wrote:

 [EMAIL PROTECTED] wrote:
 
  LAN]--[Microsoft Windows XP w/ routing]--[Dialcom ADSL Bridge]--[line
  //WORKS LAN][Corega BAR SD hardware router]--[Dialcom ADSL
  Bridge]--[line //WORKS LAN]--[FreeBSD software router]--[Dialcom
  ADSL Bridge]--[line //SUCKS :)
 
  What does FreeBSD suck at?

 I know FreeBSD PPPoE doesn't suck for sure. Also, if FreeBSD
 doesn't work for you, that doesn't have to mean it's broken.


What I was trying to get at is that the internet connection can be made with the 
hardware router. Which means either that that ADSL modem is in bridging mode 
already, or it does not need to be in it at all, but FreeBSD requires some wtf.


Thx again
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't get ppp running

2007-08-28 Thread Predrag Punosevac
The mail server is stripping attachments so you would have to send them 
as a  part of message.

You can NOT send attachment to freebsd lists.


[EMAIL PROTECTED] wrote:
I've read a lot of FreeBSD bridging and DSL router articles, but I 
still can't get PPPoE running.


Topology:mycomp---ed0-FreeBSD-rl0---ADSL_modem---Internet

Attached are some of the config and log files from the FreeBSD box. 
Currenly NAT settings are off. With these settings, in ppp interactive 
mode, I can't even get the first p capitalized.


What could be the problem?

From mycomp, I can mount the FreeBSD box's NFS, and get telnet access 
to the box. Bridging works, as shown: if I have a hardware router 
between the FreeBSD box and the modem, mycomp gets internet access.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't get ppp running

2007-08-28 Thread deeptech71

What does configuring the modem in bridging mode means?

==
=ppp.conf=
==

default:
 set device PPPoE:rl0
 set MTU 1492
 set MRU 1492
 set crtscts off
 set speed sync
 #set timeout 0
 #set redial 0 0
 enable lqr
 #disable deflate
 #disable pred1
 #disable vjcomp
 #disable acfcomp
 #disable protocomp
 set log Phase tun LCP IPCP CCP Warning Error Alert
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
 add default HISADDR
 #enable proxy
 #nat enable yes
 #nat log yes
 #nat same_ports yes
 #nat unregistered_only yes
 #nat deny_incoming yes
dsl:
 set login
 set authname [EMAIL PROTECTED]
 set authkey asd12345

==
=rc.conf==
==

usbd_enable=YES
inetd_enable=YES

hostname=some.host.name
#defaultrouter=192.168.123.254
ifconfig_ed0=inet 192.168.123.251 netmask 255.255.255.0
ifconfig_rl0=up

rpcbind_enable=YES
nfs_server_enable=YES
nfs_client_enable=YES
mountd_flags=-r

firewall_enable=YES
firewall_type=open
#firewall_type=/etc/rc.firewall.local
#firewall_quiet=YES
firewall_logging=YES

#ppp_enable=YES
#ppp_mode=ddial
#ppp_profile=dsl
#ppp_nat=YES
gateway_enable=YES

#natd_enable=YES
#natd_interface=tun0
#natd_flags=-dynamic
#router_enable=NO

==
===sysctl.conf
==

net.link.ether.bridge.config=rl0:0,ed0:0
net.link.ether.bridge.ipfw=1
net.link.ether.bridge.enable=1
net.inet.ip.forwarding=1

==
=ppp.log==
==

Aug 28 03:58:21 cp ppp[786]: Phase: Using interface: tun0
Aug 28 03:58:21 cp ppp[786]: Phase: deflink: Created in closed state
Aug 28 03:58:21 cp ppp[786]: tun0: Phase: PPP Started (interactive mode).
Aug 28 03:58:22 cp ppp[801]: Phase: Using interface: tun1
Aug 28 03:58:22 cp ppp[801]: Phase: deflink: Created in closed state
Aug 28 03:58:22 cp ppp[802]: tun1: Phase: PPP Started (auto mode).
Aug 28 03:59:40 cp ppp[786]: tun0: Phase: bundle: Establish
Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: closed - opening
Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: Connected!
Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: opening - dial
Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: dial - carrier
Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Disconnected!
Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: carrier - hangup
Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out

Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: 0 packets in, 0 packets out
Aug 28 03:59:45 cp ppp[786]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec 
on Tue Aug 28 03:59:40 2007

Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: hangup - closed
Aug 28 03:59:45 cp ppp[786]: tun0: Phase: bundle: Dead
Aug 28 03:59:46 cp ppp[786]: tun0: Phase: PPP Terminated (normal).
Aug 28 04:10:05 cp ppp[802]: tun1: Phase: bundle: Establish
Aug 28 04:10:05 cp ppp[802]: tun1: Phase: deflink: closed - opening
Aug 28 04:10:05 cp ppp[802]: tun1: Phase: deflink: Connected!
Aug 28 04:10:05 cp ppp[802]: tun1: Phase: deflink: opening - dial
Aug 28 04:10:05 cp ppp[802]: tun1: Phase: deflink: dial - carrier
Aug 28 04:10:10 cp ppp[802]: tun1: Phase: deflink: Disconnected!
Aug 28 04:10:10 cp ppp[802]: tun1: Phase: deflink: carrier - hangup
Aug 28 04:10:10 cp ppp[802]: tun1: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out

Aug 28 04:10:10 cp ppp[802]: tun1: Phase: deflink: 0 packets in, 0 packets out
Aug 28 04:10:10 cp ppp[802]: tun1: Phase:  total 0 bytes/sec, peak 0 bytes/sec 
on Tue Aug 28 04:10:05 2007

Aug 28 04:10:10 cp ppp[802]: tun1: Phase: deflink: hangup - closed
Aug 28 04:10:10 cp ppp[802]: tun1: Phase: bundle: Dead
Aug 28 04:10:12 cp ppp[802]: tun1: Phase: bundle: Establish
Aug 28 04:10:12 cp ppp[802]: tun1: Phase: deflink: closed - opening
Aug 28 04:10:12 cp ppp[802]: tun1: Phase: deflink: Connected!
Aug 28 04:10:12 cp ppp[802]: tun1: Phase: deflink: opening - dial
Aug 28 04:10:12 cp ppp[802]: tun1: Phase: deflink: dial - carrier
Aug 28 04:10:17 cp ppp[802]: tun1: Phase: deflink: Disconnected!
Aug 28 04:10:17 cp ppp[802]: tun1: Phase: deflink: carrier - hangup
Aug 28 04:10:17 cp ppp[802]: tun1: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out

Aug 28 04:10:17 cp ppp[802]: tun1: Phase: deflink: 0 packets in, 0 packets out
Aug 28 04:10:17 cp ppp[802]: tun1: Phase:  total 0 

Re: i can't get ppp running

2007-08-28 Thread Nikos Vassiliadis
On Tuesday 28 August 2007 13:48, [EMAIL PROTECTED] wrote:
 What does configuring the modem in bridging mode means?

 ==
 =ppp.conf=
 ==

 default:
   set device PPPoE:rl0
   set MTU 1492
   set MRU 1492
   set crtscts off
   set speed sync
   #set timeout 0
   #set redial 0 0
   enable lqr
   #disable deflate
   #disable pred1
   #disable vjcomp
   #disable acfcomp
   #disable protocomp
   set log Phase tun LCP IPCP CCP Warning Error Alert
   set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
   add default HISADDR
   #enable proxy
   #nat enable yes
   #nat log yes
   #nat same_ports yes
   #nat unregistered_only yes
   #nat deny_incoming yes
 dsl:
   set login
   set authname [EMAIL PROTECTED]
   set authkey asd12345


This configuration file has several irrelevant settings.
Try the one below, it's from here:
/usr/share/examples/ppp/ppp.conf.sample
I just added set authname  set authkey,
changed the NIC's name and removed the service name.

pppoe:
 set authname your_username
 set authkey your_password
 set device PPPoE:rl0
 enable lqr echo
 set cd 5
 set dial
 set login
 set redial 0 0

[snip]
 ==
 ===sysctl.conf
 ==

 net.link.ether.bridge.config=rl0:0,ed0:0
 net.link.ether.bridge.ipfw=1
 net.link.ether.bridge.enable=1
 net.inet.ip.forwarding=1


This has nothing to do with modem bridging mode.
This bridges your two ethernet segments. Disable it if
that's not what you want.

 ==
 =ppp.log==
 ==

 Aug 28 03:58:21 cp ppp[786]: Phase: Using interface: tun0
 Aug 28 03:58:21 cp ppp[786]: Phase: deflink: Created in closed state
 Aug 28 03:58:21 cp ppp[786]: tun0: Phase: PPP Started (interactive
 mode). Aug 28 03:58:22 cp ppp[801]: Phase: Using interface: tun1
 Aug 28 03:58:22 cp ppp[801]: Phase: deflink: Created in closed state
 Aug 28 03:58:22 cp ppp[802]: tun1: Phase: PPP Started (auto mode).
 Aug 28 03:59:40 cp ppp[786]: tun0: Phase: bundle: Establish
 Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: closed - opening
 Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: Connected!
 Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: opening - dial
 Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: dial - carrier
 Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Disconnected!
 Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: carrier - hangup
 Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Connect time: 5 secs:
 0 octets in, 0 octets out
^^
Zero octets in and zero octets out. Is your modem in bridging mode?
It may be called rfc1483. Enable it.

check what goes on with tcpdump:
root:0:/# tcpdump -nli rl0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on rl0, link-type EN10MB (Ethernet), capture size 96 bytes
14:34:54.863275 PPPoE PADI [Host-Uniq 0xC0656EC3] [Service-Name]
14:34:56.862997 PPPoE PADI [Host-Uniq 0xC0656EC3] [Service-Name]
14:34:59.969272 PPPoE PADI [Host-Uniq 0xC00CFAC3] [Service-Name]

This is not what you should see, you should see PADO and the rest.
If that's what you see, your modem is probably not in bridging mode.

[snip]

Hope this helps

Nikos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]