From owner-freebsd-questions Mon Apr 10 4:10: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.ozler.com (asy1.as55.sol.superonline.com [212.252.55.1]) by hub.freebsd.org (Postfix) with ESMTP id 30B2E37B595 for ; Mon, 10 Apr 2000 04:09:53 -0700 (PDT) (envelope-from ertank@ozlerplastik.com) Received: from ozlerplastik.com (ertan [192.168.0.20]) by www.ozler.com (8.9.3/8.9.3) with ESMTP id OAA74857 for ; Mon, 10 Apr 2000 14:13:00 +0300 (EEST) (envelope-from ertank@ozlerplastik.com) Message-ID: <38F1B5FF.913431C2@ozlerplastik.com> Date: Mon, 10 Apr 2000 14:07:43 +0300 From: Ertan Kucukoglu Organization: =?iso-8859-9?Q?=D6zler?= Plastik San. ve Tic. A.S. X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: tr,en MIME-Version: 1.0 To: questions@freebsd.org Subject: Leased line and routing problems Content-Type: text/plain; charset=iso-8859-9 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I searched the maillist but, couldn't find a solution to my problem. I want to connect the LAN to the internet using router with FreeBSD 4.0. I didn't setup any router configuration before, so I don't know what to do, and below there maybe wrong configurations. FreeBSD has 2 ethernets. One is 195.33.200.146 another is 192.168.1.152. Router's ip is 195.33.200.145, and setup for the 195.33.200.146 ip address. In my BSD I setup default gateway to 195.33.200.145, so my box can connect to the internet. I don't know what to do after that point. Please direct me to a web site or help setting this network up. My several configuration files are below: ----- /etc/rc.conf ----- bash-2.03# cat /etc/rc.conf # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. # -- sysinstall generated deltas -- # ifconfig_xl0="inet 192.168.1.152 netmask 255.255.255.0" ifconfig_xl1="inet 195.33.200.146 netmask 255.255.255.0" gateway_enable="YES" network_interfaces="lo0 xl0 xl1 auto" hostname="freebsd.darkstar.com" linux_enable="YES" saver="logo" keyrate="fast" defaultrouter="195.33.200.145" apm_enable="NO" # -- sysinstall generated deltas -- # named_enable="YES" # -- sysinstall generated deltas -- # router_flags="-q" router="routed" router_enable="YES" bash-2.03# ----- EOF ----- ----- /etc/hosts ----- bash-2.03# cat /etc/hosts 127.0.0.1 localhost.darkstar.com localhost 192.168.1.152 freebsd.darkstar.com freebsd 192.168.1.152 freebsd.darkstar.com. bash-2.03# ----- EOF ----- ----- /etc/resolv.conf ----- bash-2.03# cat /etc/resolv.conf nameserver 127.0.0.1 #nameserver 212.252.119.3 #nameserver 212.252.119.4 serach superonline.com ----- EOF ----- ----- 'netstat -r' output ----- bash-2.03# netstat -r Routing tables Internet: Destination Gateway Flags Netif Expire default 195.33.200.145 UGSc xl1 localhost localhost UH lo0 192.168.1 link#1 UC xl0 => 195.33.200 link#2 UC xl1 => 195.33.200.145 0:30:94:3f:af:f8 UHLW xl1 1184 Internet6: [snip IPV6 output] ----- EOF ----- Best Regards, -- Ertan Kucukoglu ertank@ozlerplastik.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message