Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!tank.news.pipex.net!pipex!howland.reston.ans.net!math.ohio-state.edu!news.cyberstore.ca!van-bc!io.org!news.interlog.com!news From: Michel Joly de Lotbiniere <mjdl@interlog.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Configuring no network Date: 19 Sep 1995 18:10:35 GMT Organization: None Lines: 177 Message-ID: <43n12r$pam@steel.interlog.com> References: <43je3l$qfs@passion.nosc.mil> NNTP-Posting-Host: lotbiniere.interlog.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed) To: gherrity@io.nosc.mil X-URL: news:43je3l$qfs@passion.nosc.mil gherrity@io.nosc.mil (Mike Gherrity) wrote: > >I just installed FreeBSD 2.0.5 on my pc at home. I have no network at home: >No network card, no NFS. During the installation process, I didn't come >across anything that asked me for a machine name, so I went to the >"Network Services Menu" (even though I have no network), and came across >a "Network Configuration" menu which asked me for a machine name. I >dutifully put in the name 'hal'. However, there were places for Domain, >Gateway, IP address, ... which I left blank since I have no network (in >another attempt at installation I used hal.mjg.org, but that didn't seem >to have any different results). >[snip-snip] I am not TCP/IP educated, and I did more or less the same as you the first time, except that I copied the nameserver/gateway/etc. info my IP provider gave into the form; result: lots of misconfiguration errors on boot-up, and so on... SO WHAT I SAY HERE IS PROBABLY WRONG!!! However, I now have a configuration that works for a statically assigned IP number at my end of a PPP link, while the IP provider's gateway router changes on every connection. The solution is simple: 1) edit /etc/sysconfig so that named does not start, routed starts with the -s option, e.g. my static IP # is 198.53.146.76 my assigned gateway for PPP is 198.53.145.4 (which it never actually is) my nameserver is 198.53.145.2 which results in ######################### Start Of Netconfig Section ####################### # Set to the name of your host - this is pretty important! hostname=lotbiniere.interlog.com # Set to the NIS domainname of your host, or NO if none defaultdomainname=NO # # Some broken implementations can't handle the RFC 1323 and RFC 1644 # TCP options. If TCP connections randomly hang, try disabling this, # and bug the vendor of the losing equipment. # tcp_extensions=YES # # Set to the list of network devices on this host. You must have an # ifconfig_${network_interface} line for each interface listed here. # for example: # # network_interfaces="ed0 sl0 lo0" # ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" # ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" # network_interfaces="lo0 tun0" #network_interfaces="lo0" ifconfig_lo0="inet localhost" ifconfig_tun0="inet lotbiniere.interlog.com 198.53.145.4 netmask 0xffffff00" # # Set to the list of route add lines for this host. You must have a # route_${static_routes} line for each static route listed here. # static_routes="loopback" #route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}" route_loopback="${hostname} localhost" # Set to the host you'd like set as your default router, or NO for none. defaultrouter=NO # These are the flags you'd like to start the routing daemon with routedflags=-s # timed flags, or NO if you don't want to start the time daemon timedflags=NO # xntpd flags, or NO if you don't want to start the xntpd daemon xntpdflags="NO" # this is inoperative unless xntpd is enabled; NO to disable tickadjflags="-Aq" # Set to the site you'd like to syncronize your clock from (gatekeeper.dec.com, # for example) or NO for no such site. ntpdate="NO" # Set to YES if you want to run rwhod rwhod=NO # Default sendmail flags. -bd is pretty mandatory, -q<n>m sets the queue scan # time in minutes. If set to NO, don't start sendmail at all. sendmail_flags="-bd" # Set to appropriate flags if you want to use AMD amdflags="NO" # Set to YES if this machine will be an NFS client nfs_client=NO # Set to YES if this machine will be an NFS server nfs_server=NO # Set to appropriate flags if you want to start NIS for a client nis_clientflags="NO" # Set to appropriate flags if you want to start NIS for a server nis_serverflags="NO" # Set to appropriate flags for yppasswdd, if you wish to run it. # Typical flags might be "-m /var/yp/master.passwd -s -f" yppasswddflags="NO" # Set to appropriate flags for named, if you have a full-time # connection to the Internet. # For most hosts, flags should be "-b /etc/namedb/named.boot" namedflags="NO" # Set to YES if you want to run the X-10 power controller daemon xtend=NO # Set to YES if you want kernel crashdumps to be saved for debugging savecore=NO # Set to YES if you want to run Kerberos authentication kerberos_server=NO # Set to YES if you want to run gated gated=NO ############################ I had to call my machine exactly what the CNAME records of my IP provider calls my machine, i.e. host == lotbiniere domain == interlog.com then make sure /etc/host.config reads hosts bind and /etc/hosts 127.0.0.1 localhost 198.53.146.76 lotbiniere.interlog.com lotbiniere and /etc/resolv.conf domain interlog.com nameserver 198.53.145.2 and finally the .ppp.conf in my home directory: # all connections default: set device /dev/cuaa1 set speed 34800 # disable lqr # deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER ABORT NO\\sDIAL\\sTONE ABORT NO\\sANSWER TIMEOUT 5 \"\" ATZ OK-AT-OK \\dATDT\\T TIMEOUT 30 CONNECT" interlog: set phone xxxxxxxx set login "TIMEOUT 5 login:-\\r-login: etc. set timeout 600 and .ppp.linkup: 198.53.146.76: add 0 0 HISADDR And that's all there is to it, at least until I run into the inevitable problems... Happy Unix-ing! -- ========================= Michel Joly de Lotbiniere mjdl@interlog.com =========================