From owner-freebsd-questions@FreeBSD.ORG Fri Jan 23 06:39:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 049C616A509 for ; Fri, 23 Jan 2004 06:39:52 -0800 (PST) Received: from kyder.com (c-67-165-7-242.client.comcast.net [67.165.7.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23C2143D1F for ; Fri, 23 Jan 2004 06:39:50 -0800 (PST) (envelope-from jerrys@kyder.com) Received: from kyder.com (jerrys@localhost [127.0.0.1]) by kyder.com (8.12.10/8.12.10) with ESMTP id i0NEdnnx091602; Fri, 23 Jan 2004 09:39:49 -0500 (EST) (envelope-from jerrys@kyder.com) Received: (from jerrys@localhost) by kyder.com (8.12.10/8.12.10/Submit) id i0NEdnkx091601; Fri, 23 Jan 2004 09:39:49 -0500 (EST) (envelope-from jerrys) From: Jerrys Transmission Message-Id: <200401231439.i0NEdnkx091601@kyder.com> To: freebsd-questions@freebsd.org Date: Fri, 23 Jan 2004 09:39:48 -0500 (EST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: DSL with User PPP and Static IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 14:39:52 -0000 Hello, I have just started working for a local auto transmission repair shop and am trying to get the local server up and running. Specifically, the server works great with dynamic IPs assigned from the DSL provider (using PPPoE) but it burps when I attempt a static IP as per the handbook's "Using User PPP" section. Our business was given the following values for connecting to the Internet: Net: 69.37.6.192 Gateway: 69.37.6.198 Netmask: 255.255.255.248 Broadcast: 69.37.6.199 Static IPs 193-197 When I change /etc/ppp/ppp.conf (sample attached) to: set ifaddr 69.37.6.193 69.37.6.198 255.255.255.248 tun0 is "Opened by PID xxx" but does not show any IP addresses, and the connection does not work. If I leave the ifaddr to the dynamic setting (which includes the 0.0.0.0) everything works fine. I am including a sample of our local ppp.conf, ifconfig output, and relevant parts of rc.conf for reference. Please note, the ifconfig output shows the missing inet line when a static config is attempted. Any help would be greatly appreciated. Thanks again, Jacob @ Jerry's Transmission Service Guilford, CT 06437 --------SAMPLE PPP.CONF------- default: set log Phase Chat LCP IPCP CCP tun command nat enable yes nat same_ports yes nat use_sockets yes set redial 15 28800 set reconnect 15 28800 sbcglobal: set device PPPoE:dc0: set mru 1492 set mtu 1492 set speed sync enable lqr set lqrperiod 5 set cd 5 set dial set login set timeout 0 set authname [CENSORED] set authkey [CENSORED] set ifaddr 69.37.6.193 69.37.6.198 255.255.255.248 add default HISADDR enable dns loop: set timeout 0 set log phase chat connect lcp ipcp command set device localhost:pptp set dial set login set ifaddr 192.168.0.1 192.168.0.200-192.168.0.253 255.255.255.255 set server /tmp/loop "" 0177 loop-in: set timeout 0 set log phase lcp ipcp command allow mode direct pptp: load loop enable loop disable pap enable passwdauth enable proxy accept dns set dns 192.168.0.1 192.168.0.2 set nbns 192.168.0.15 192.168.0.16 set device !/etc/ppp/secure -------END PPP.CONF------- -------SAMPLE IFCONFIG------- dc0: flags=88c3 mtu 1492 inet6 fe80::204:5aff:fe7f:75d4%dc0 prefixlen 64 scopeid 0x1 inet 10.0.0.1 netmask 0xff000000 broadcast 10.255.255.255 ether 00:04:5a:7f:75:d4 media: Ethernet autoselect (100baseTX ) status: active em0: flags=8843 mtu 1500 options=3 inet6 fe80::207:e9ff:fe70:801b%em0 prefixlen 64 scopeid 0x2 inet 192.168.2.1 netmask 0xffff0000 broadcast 192.168.255.255 ether 00:07:e9:70:80:1b media: Ethernet autoselect (100baseTX ) status: active lp0: flags=8810 mtu 1500 sl0: flags=c010 mtu 552 faith0: flags=8002 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010 mtu 1500 tun0: flags=8051 mtu 1492 Opened by PID 501 -------END IFCONFIG------- -------SAMPLE RC.CONF------- network_interfaces="auto" ifconfig_em0="inet 192.168.2.1 netmask 255.255.0.0" ifconfig_dc0="inet 10.0.0.1 mtu 1492 netmask 255.0.0.0 -arp up" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="sbcglobal" gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" natd_enable="YES" natd_interface="tun0" natd_flags="-u -m -dynamic -s" named_enable="YES" -------END RC.CONF-------