Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2000 14:07:43 +0300
From:      Ertan Kucukoglu <ertank@ozlerplastik.com>
To:        questions@freebsd.org
Subject:   Leased line and routing problems
Message-ID:  <38F1B5FF.913431C2@ozlerplastik.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38F1B5FF.913431C2>