Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2001 01:54:44 -0700
From:      "Kenji Tozaki" <ktozaki@pacificwind.net>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Problem with vi and gateway
Message-ID:  <000e01c0e68a$ae28d200$37323c04@cumine500>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C0E650.008A9C30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Three questions:

Q1:
I screwed up rc.conf.  I needed to edit it by login as a single user.  =
When I start a vi session, this is what I get:
    ex/vi:  Error:  Unable to create temporary file:  Read-only file =
system
How can I start vi session so that I can modify rc.conf?

Q2:
I was trying to configure connectivity with the Internet.  I entered =
this statement:
    #  route add default 4.50.48.1

Then, I verified my entry by typing:
    #  netstat -rn

I believe I SHOULD see like this:
    Destination    Gateway    Flags    Refs    Use    Netif Expire
    default            4.50.48.1    UGSc    4        72        ed1

Problem is I don't see it.  I'm assuming the gateway is not honored.  =
Why?

Q3:
For kernel configuration, what is the following?
    device        miibus

Thx for help.

Kenji



------=_NextPart_000_000B_01C0E650.008A9C30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Three&nbsp;questions:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Q1:</FONT></DIV>
<DIV><FONT size=3D2>I screwed up rc.conf.&nbsp; I needed to edit it by =
login as a=20
single user.&nbsp; When I start a vi session, this is what I =
get:</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; ex/vi:&nbsp; Error:&nbsp; Unable =
to create=20
temporary file:&nbsp; Read-only file system</FONT></DIV>
<DIV><FONT size=3D2>How can I&nbsp;start vi session so that I can modify =

rc.conf?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Q2:</FONT></DIV>
<DIV><FONT size=3D2>I was trying to configure connectivity with the=20
Internet.&nbsp; I entered this statement:</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; #&nbsp; route add default=20
4.50.48.1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Then, I verified my entry by typing:</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; #&nbsp; netstat -rn</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>I believe I&nbsp;SHOULD see like this:</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp;=20
Gateway&nbsp;&nbsp;&nbsp; Flags&nbsp;&nbsp;&nbsp; Refs&nbsp;&nbsp;&nbsp; =

Use&nbsp;&nbsp;&nbsp; Netif Expire</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; default&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 4.50.48.1&nbsp;&nbsp;&nbsp;=20
UGSc&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
72&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ed1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Problem is I don't see it.&nbsp; I'm assuming the =
gateway is=20
not honored.&nbsp; Why?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Q3:</FONT></DIV>
<DIV><FONT size=3D2>For kernel configuration, what is the =
following?</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; device&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
miibus</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Thx for help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Kenji</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000B_01C0E650.008A9C30--


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?000e01c0e68a$ae28d200$37323c04>