Gentlemen:
"edit /etc/fox/rc.foxapps"................
This is not where customer boot-up scripts are placed; as "rc.foxapps" is
for Foxboro core software products only. Customers should use:
"/etc/fox/user_apps.dat" This file is not present after a Day-0 install. You
need to create it.
......................"and add "route add
default 112.113.1.1" to the file."
While this entry would work. It is better practice to build an executable
script and have the entry in the /etc/fox/user_apps.dat point to the
executable script that does the "route() call"
But as John Metsker pointed out the proper way to add default router is to
create "/etc/defaultrouter" and simply add the IP address of the default
router, similar to the /etc/hostname.(hme/le)x entries. Then reboot and
check for the default router entry by typing "netstat -nr" to yield the
routing table and reveal the default route.
Ie/
Create the defaultrouter file:
# echo 192.168.1.1 > /etc/defaultrouter
Reboot Box
Check routing tables:
# netstat -nr
Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 23 lo0
192.168.1.0 192.168.1.4 U 2 2 le1
151.128.0.0 151.128.8.65 U 3 0 le0
224.0.0.0 151.128.8.65 U 3 0 le0
default 192.168.1.1 UG 0 0
notice how the "192.168.1.1" entry is now the default gateway (route)
----------
From: Loupe, Rory
Sent: Thursday, June 01, 2000 6:34 AM
To: 'Foxboro DCS Mail List'
Subject: RE: Ethernet Networking Question
You need to add the router as the default gateway. First enter
"route add
default 112.113.1.1", next edit /etc/fox/rc.foxapps and add "route
add
default 112.113.1.1" to the file.
Rory Loupe
-----Original Message-----
From: Alan J Schaff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 01, 2000 7:24 AM
To: Foxboro DCS Mail List
Subject: Ethernet Networking Question
I have a question regarding setting up the 2nd
ethernet port
to access other
networks via a router. Here are the details of my
system
setup:
AW51C: 112.113.105.1
Router: 112.113.1.1
AW51B: 106.106.4.4
Netmask (51C) 255.255.0.0
What I am trying to do is access the AW51B from the
AW51C.
On the AW51C, is
there somewhere where I have to setup the router
address so
that it knows where
to send messages that are outside of the local
(112.113)
network? Right now I
am getting error messages indicating that the 51C
can't
access the 51B network.
Thanks,
Alan Schaff
BASF Corp.
-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company. All
postings from this list are the work of list subscribers and no warranty
is made or implied as to the accuracy of any information disseminated
through this medium. By subscribing to this list you agree to hold the
list sponsor(s) blameless for any and all mishaps which might occur due to
your application of information received from this mailing list.
To be removed from this list, send mail to
[EMAIL PROTECTED]
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]