Home » Personal collection » Acorn hard disk » apps » NetApps » !Internet/files/Startup

!Internet/files/Startup

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » NetApps
Filename: !Internet/files/Startup
Read OK:
File size: 0F98 bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
|=====================================================================|
| Local host initialisation file for !Internet V4.07 (<Inet$Startup>) |
|=====================================================================|

|=====================================================================|
| This first part is not normally configurable - but you may change   |
| the commands to suit your needs if you have special requirements    |
| not covered by the default configuration procedure, such as the     |
| requirement to support multiple Ethernet cards (the default allows  |
| for a maximum of one Ethernet plus one Econet interface).           |
|                                                                     |
| These commands will start your network interfaces, assigning        |
| addresses and masks.                                                |
|=====================================================================|

| Load driver and initialise Ethernet interface, if required

IF "<Inet$EtherIPAddr>" <> "" AND "<Inet$EtherDevice>" <> "" THEN RMLoad System:Modules.Network.<Inet$EtherDevice>
set Inet$EtherTypeA <Inet$EtherType>
IF "<Inet$Error>" = "" AND "<Inet$EtherIPAddr>" <> "" AND "<Inet$EtherIPAddr>" <> "revarp" AND "<Inet$EtherIPAddr>" <> "bootp" THEN run Inet:bin.ifconfig -e <Inet$EtherType> netmask <Inet$EtherIPMask> broadcast 131.111.213.191 <Inet$EtherIPAddr> 
IF "<Inet$Error>" = "" AND "<Inet$EtherIPAddr>" = "revarp" THEN run Inet:bin.ifrconfig -e <Inet$EtherType> revarp
IF "<Inet$Error>" = "" AND "<Inet$EtherIPAddr>" = "bootp" THEN run Inet:bin.ifrconfig -e <Inet$EtherType> bootp

| Load driver and initialise Econet interface, if required

IF "<Inet$Error>" = "" AND "<Inet$EcoIPAddr>" <> "" THEN rmload System:Modules.Network.EconetA
set Inet$EtherType <Inet$EtherTypeA>
unset Inet$EtherTypeA
IF "<Inet$Error>" = "" AND "<Inet$EcoIPAddr>" <> "" AND "<Inet$EcoIPAddr>" <> "revarp" AND "<Inet$EcoIPAddr>" <> "bootp" THEN run Inet:bin.ifconfig -e ec0 netmask <Inet$EcoIPMask> <Inet$EcoIPAddr>
IF "<Inet$Error>" = "" AND "<Inet$EcoIPAddr>" = "revarp" THEN run Inet:bin.ifrconfig -e ec0 revarp
IF "<Inet$Error>" = "" AND "<Inet$EcoIPAddr>" = "bootp" THEN run Inet:bin.ifrconfig -e ec0 bootp

| Bring the loopback interface up
| IF "<Inet$Error>" = "" THEN ifconfig -e lo0 loopback

|=====================================================================|
| This second part is configurable.                                   |
|                                                                     |
| When you edited the !Configure file, you set whether or not to      |
| run RouteD. If you did not run RouteD, and need to establish routes |
| to remote networks or hosts from this host, you must add *Route     |
| commands here.                                                      |
|                                                                     |
| For example, if your machine is connected to net 1, and you wish to |
| establish a route to net 2 via the interface 1.0.0.2 on a gateway:  |
|                                                                     |
| IF "<Inet$Error>" = "" THEN route -e add net 2 1.0.0.2 1            |
|                                                                     |
| (The IF...THEN statement above is necessary, as is the '-e'         |
| parameter.)                                                         |
|                                                                     |
| Alternatively, you may be running RouteD on the above gateway, (so  |
| it knows the way to other nets), but not on your machine. You can   |
| send all traffic destined for other nets to the above gateway thus: |
|                                                                     |
| IF "<Inet$Error>" = "" THEN route -e add net default 1.0.0.2 1      |
|=====================================================================|

echo hello

IF "<Inet$Error>" = "" THEN route -e add net default 131.111.213.190 1
00000000  7c 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  ||===============|
00000010  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000040  3d 3d 3d 3d 3d 3d 7c 0a  7c 20 4c 6f 63 61 6c 20  |======|.| Local |
00000050  68 6f 73 74 20 69 6e 69  74 69 61 6c 69 73 61 74  |host initialisat|
00000060  69 6f 6e 20 66 69 6c 65  20 66 6f 72 20 21 49 6e  |ion file for !In|
00000070  74 65 72 6e 65 74 20 56  34 2e 30 37 20 28 3c 49  |ternet V4.07 (<I|
00000080  6e 65 74 24 53 74 61 72  74 75 70 3e 29 20 7c 0a  |net$Startup>) |.|
00000090  7c 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  ||===============|
000000a0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000000d0  3d 3d 3d 3d 3d 3d 7c 0a  0a 7c 3d 3d 3d 3d 3d 3d  |======|..|======|
000000e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000110  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 7c  |===============||
00000120  0a 7c 20 54 68 69 73 20  66 69 72 73 74 20 70 61  |.| This first pa|
00000130  72 74 20 69 73 20 6e 6f  74 20 6e 6f 72 6d 61 6c  |rt is not normal|
00000140  6c 79 20 63 6f 6e 66 69  67 75 72 61 62 6c 65 20  |ly configurable |
00000150  2d 20 62 75 74 20 79 6f  75 20 6d 61 79 20 63 68  |- but you may ch|
00000160  61 6e 67 65 20 20 20 7c  0a 7c 20 74 68 65 20 63  |ange   |.| the c|
00000170  6f 6d 6d 61 6e 64 73 20  74 6f 20 73 75 69 74 20  |ommands to suit |
00000180  79 6f 75 72 20 6e 65 65  64 73 20 69 66 20 79 6f  |your needs if yo|
00000190  75 20 68 61 76 65 20 73  70 65 63 69 61 6c 20 72  |u have special r|
000001a0  65 71 75 69 72 65 6d 65  6e 74 73 20 20 20 20 7c  |equirements    ||
000001b0  0a 7c 20 6e 6f 74 20 63  6f 76 65 72 65 64 20 62  |.| not covered b|
000001c0  79 20 74 68 65 20 64 65  66 61 75 6c 74 20 63 6f  |y the default co|
000001d0  6e 66 69 67 75 72 61 74  69 6f 6e 20 70 72 6f 63  |nfiguration proc|
000001e0  65 64 75 72 65 2c 20 73  75 63 68 20 61 73 20 74  |edure, such as t|
000001f0  68 65 20 20 20 20 20 7c  0a 7c 20 72 65 71 75 69  |he     |.| requi|
00000200  72 65 6d 65 6e 74 20 74  6f 20 73 75 70 70 6f 72  |rement to suppor|
00000210  74 20 6d 75 6c 74 69 70  6c 65 20 45 74 68 65 72  |t multiple Ether|
00000220  6e 65 74 20 63 61 72 64  73 20 28 74 68 65 20 64  |net cards (the d|
00000230  65 66 61 75 6c 74 20 61  6c 6c 6f 77 73 20 20 7c  |efault allows  ||
00000240  0a 7c 20 66 6f 72 20 61  20 6d 61 78 69 6d 75 6d  |.| for a maximum|
00000250  20 6f 66 20 6f 6e 65 20  45 74 68 65 72 6e 65 74  | of one Ethernet|
00000260  20 70 6c 75 73 20 6f 6e  65 20 45 63 6f 6e 65 74  | plus one Econet|
00000270  20 69 6e 74 65 72 66 61  63 65 29 2e 20 20 20 20  | interface).    |
00000280  20 20 20 20 20 20 20 7c  0a 7c 20 20 20 20 20 20  |       |.|      |
00000290  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000002c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 7c  |               ||
000002d0  0a 7c 20 54 68 65 73 65  20 63 6f 6d 6d 61 6e 64  |.| These command|
000002e0  73 20 77 69 6c 6c 20 73  74 61 72 74 20 79 6f 75  |s will start you|
000002f0  72 20 6e 65 74 77 6f 72  6b 20 69 6e 74 65 72 66  |r network interf|
00000300  61 63 65 73 2c 20 61 73  73 69 67 6e 69 6e 67 20  |aces, assigning |
00000310  20 20 20 20 20 20 20 7c  0a 7c 20 61 64 64 72 65  |       |.| addre|
00000320  73 73 65 73 20 61 6e 64  20 6d 61 73 6b 73 2e 20  |sses and masks. |
00000330  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000350  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 7c  |               ||
00000360  0a 7c 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |.|==============|
00000370  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000003a0  3d 3d 3d 3d 3d 3d 3d 7c  0a 0a 7c 20 4c 6f 61 64  |=======|..| Load|
000003b0  20 64 72 69 76 65 72 20  61 6e 64 20 69 6e 69 74  | driver and init|
000003c0  69 61 6c 69 73 65 20 45  74 68 65 72 6e 65 74 20  |ialise Ethernet |
000003d0  69 6e 74 65 72 66 61 63  65 2c 20 69 66 20 72 65  |interface, if re|
000003e0  71 75 69 72 65 64 0a 0a  49 46 20 22 3c 49 6e 65  |quired..IF "<Ine|
000003f0  74 24 45 74 68 65 72 49  50 41 64 64 72 3e 22 20  |t$EtherIPAddr>" |
00000400  3c 3e 20 22 22 20 41 4e  44 20 22 3c 49 6e 65 74  |<> "" AND "<Inet|
00000410  24 45 74 68 65 72 44 65  76 69 63 65 3e 22 20 3c  |$EtherDevice>" <|
00000420  3e 20 22 22 20 54 48 45  4e 20 52 4d 4c 6f 61 64  |> "" THEN RMLoad|
00000430  20 53 79 73 74 65 6d 3a  4d 6f 64 75 6c 65 73 2e  | System:Modules.|
00000440  4e 65 74 77 6f 72 6b 2e  3c 49 6e 65 74 24 45 74  |Network.<Inet$Et|
00000450  68 65 72 44 65 76 69 63  65 3e 0a 73 65 74 20 49  |herDevice>.set I|
00000460  6e 65 74 24 45 74 68 65  72 54 79 70 65 41 20 3c  |net$EtherTypeA <|
00000470  49 6e 65 74 24 45 74 68  65 72 54 79 70 65 3e 0a  |Inet$EtherType>.|
00000480  49 46 20 22 3c 49 6e 65  74 24 45 72 72 6f 72 3e  |IF "<Inet$Error>|
00000490  22 20 3d 20 22 22 20 41  4e 44 20 22 3c 49 6e 65  |" = "" AND "<Ine|
000004a0  74 24 45 74 68 65 72 49  50 41 64 64 72 3e 22 20  |t$EtherIPAddr>" |
000004b0  3c 3e 20 22 22 20 41 4e  44 20 22 3c 49 6e 65 74  |<> "" AND "<Inet|
000004c0  24 45 74 68 65 72 49 50  41 64 64 72 3e 22 20 3c  |$EtherIPAddr>" <|
000004d0  3e 20 22 72 65 76 61 72  70 22 20 41 4e 44 20 22  |> "revarp" AND "|
000004e0  3c 49 6e 65 74 24 45 74  68 65 72 49 50 41 64 64  |<Inet$EtherIPAdd|
000004f0  72 3e 22 20 3c 3e 20 22  62 6f 6f 74 70 22 20 54  |r>" <> "bootp" T|
00000500  48 45 4e 20 72 75 6e 20  49 6e 65 74 3a 62 69 6e  |HEN run Inet:bin|
00000510  2e 69 66 63 6f 6e 66 69  67 20 2d 65 20 3c 49 6e  |.ifconfig -e <In|
00000520  65 74 24 45 74 68 65 72  54 79 70 65 3e 20 6e 65  |et$EtherType> ne|
00000530  74 6d 61 73 6b 20 3c 49  6e 65 74 24 45 74 68 65  |tmask <Inet$Ethe|
00000540  72 49 50 4d 61 73 6b 3e  20 62 72 6f 61 64 63 61  |rIPMask> broadca|
00000550  73 74 20 31 33 31 2e 31  31 31 2e 32 31 33 2e 31  |st 131.111.213.1|
00000560  39 31 20 3c 49 6e 65 74  24 45 74 68 65 72 49 50  |91 <Inet$EtherIP|
00000570  41 64 64 72 3e 20 0a 49  46 20 22 3c 49 6e 65 74  |Addr> .IF "<Inet|
00000580  24 45 72 72 6f 72 3e 22  20 3d 20 22 22 20 41 4e  |$Error>" = "" AN|
00000590  44 20 22 3c 49 6e 65 74  24 45 74 68 65 72 49 50  |D "<Inet$EtherIP|
000005a0  41 64 64 72 3e 22 20 3d  20 22 72 65 76 61 72 70  |Addr>" = "revarp|
000005b0  22 20 54 48 45 4e 20 72  75 6e 20 49 6e 65 74 3a  |" THEN run Inet:|
000005c0  62 69 6e 2e 69 66 72 63  6f 6e 66 69 67 20 2d 65  |bin.ifrconfig -e|
000005d0  20 3c 49 6e 65 74 24 45  74 68 65 72 54 79 70 65  | <Inet$EtherType|
000005e0  3e 20 72 65 76 61 72 70  0a 49 46 20 22 3c 49 6e  |> revarp.IF "<In|
000005f0  65 74 24 45 72 72 6f 72  3e 22 20 3d 20 22 22 20  |et$Error>" = "" |
00000600  41 4e 44 20 22 3c 49 6e  65 74 24 45 74 68 65 72  |AND "<Inet$Ether|
00000610  49 50 41 64 64 72 3e 22  20 3d 20 22 62 6f 6f 74  |IPAddr>" = "boot|
00000620  70 22 20 54 48 45 4e 20  72 75 6e 20 49 6e 65 74  |p" THEN run Inet|
00000630  3a 62 69 6e 2e 69 66 72  63 6f 6e 66 69 67 20 2d  |:bin.ifrconfig -|
00000640  65 20 3c 49 6e 65 74 24  45 74 68 65 72 54 79 70  |e <Inet$EtherTyp|
00000650  65 3e 20 62 6f 6f 74 70  0a 0a 7c 20 4c 6f 61 64  |e> bootp..| Load|
00000660  20 64 72 69 76 65 72 20  61 6e 64 20 69 6e 69 74  | driver and init|
00000670  69 61 6c 69 73 65 20 45  63 6f 6e 65 74 20 69 6e  |ialise Econet in|
00000680  74 65 72 66 61 63 65 2c  20 69 66 20 72 65 71 75  |terface, if requ|
00000690  69 72 65 64 0a 0a 49 46  20 22 3c 49 6e 65 74 24  |ired..IF "<Inet$|
000006a0  45 72 72 6f 72 3e 22 20  3d 20 22 22 20 41 4e 44  |Error>" = "" AND|
000006b0  20 22 3c 49 6e 65 74 24  45 63 6f 49 50 41 64 64  | "<Inet$EcoIPAdd|
000006c0  72 3e 22 20 3c 3e 20 22  22 20 54 48 45 4e 20 72  |r>" <> "" THEN r|
000006d0  6d 6c 6f 61 64 20 53 79  73 74 65 6d 3a 4d 6f 64  |mload System:Mod|
000006e0  75 6c 65 73 2e 4e 65 74  77 6f 72 6b 2e 45 63 6f  |ules.Network.Eco|
000006f0  6e 65 74 41 0a 73 65 74  20 49 6e 65 74 24 45 74  |netA.set Inet$Et|
00000700  68 65 72 54 79 70 65 20  3c 49 6e 65 74 24 45 74  |herType <Inet$Et|
00000710  68 65 72 54 79 70 65 41  3e 0a 75 6e 73 65 74 20  |herTypeA>.unset |
00000720  49 6e 65 74 24 45 74 68  65 72 54 79 70 65 41 0a  |Inet$EtherTypeA.|
00000730  49 46 20 22 3c 49 6e 65  74 24 45 72 72 6f 72 3e  |IF "<Inet$Error>|
00000740  22 20 3d 20 22 22 20 41  4e 44 20 22 3c 49 6e 65  |" = "" AND "<Ine|
00000750  74 24 45 63 6f 49 50 41  64 64 72 3e 22 20 3c 3e  |t$EcoIPAddr>" <>|
00000760  20 22 22 20 41 4e 44 20  22 3c 49 6e 65 74 24 45  | "" AND "<Inet$E|
00000770  63 6f 49 50 41 64 64 72  3e 22 20 3c 3e 20 22 72  |coIPAddr>" <> "r|
00000780  65 76 61 72 70 22 20 41  4e 44 20 22 3c 49 6e 65  |evarp" AND "<Ine|
00000790  74 24 45 63 6f 49 50 41  64 64 72 3e 22 20 3c 3e  |t$EcoIPAddr>" <>|
000007a0  20 22 62 6f 6f 74 70 22  20 54 48 45 4e 20 72 75  | "bootp" THEN ru|
000007b0  6e 20 49 6e 65 74 3a 62  69 6e 2e 69 66 63 6f 6e  |n Inet:bin.ifcon|
000007c0  66 69 67 20 2d 65 20 65  63 30 20 6e 65 74 6d 61  |fig -e ec0 netma|
000007d0  73 6b 20 3c 49 6e 65 74  24 45 63 6f 49 50 4d 61  |sk <Inet$EcoIPMa|
000007e0  73 6b 3e 20 3c 49 6e 65  74 24 45 63 6f 49 50 41  |sk> <Inet$EcoIPA|
000007f0  64 64 72 3e 0a 49 46 20  22 3c 49 6e 65 74 24 45  |ddr>.IF "<Inet$E|
00000800  72 72 6f 72 3e 22 20 3d  20 22 22 20 41 4e 44 20  |rror>" = "" AND |
00000810  22 3c 49 6e 65 74 24 45  63 6f 49 50 41 64 64 72  |"<Inet$EcoIPAddr|
00000820  3e 22 20 3d 20 22 72 65  76 61 72 70 22 20 54 48  |>" = "revarp" TH|
00000830  45 4e 20 72 75 6e 20 49  6e 65 74 3a 62 69 6e 2e  |EN run Inet:bin.|
00000840  69 66 72 63 6f 6e 66 69  67 20 2d 65 20 65 63 30  |ifrconfig -e ec0|
00000850  20 72 65 76 61 72 70 0a  49 46 20 22 3c 49 6e 65  | revarp.IF "<Ine|
00000860  74 24 45 72 72 6f 72 3e  22 20 3d 20 22 22 20 41  |t$Error>" = "" A|
00000870  4e 44 20 22 3c 49 6e 65  74 24 45 63 6f 49 50 41  |ND "<Inet$EcoIPA|
00000880  64 64 72 3e 22 20 3d 20  22 62 6f 6f 74 70 22 20  |ddr>" = "bootp" |
00000890  54 48 45 4e 20 72 75 6e  20 49 6e 65 74 3a 62 69  |THEN run Inet:bi|
000008a0  6e 2e 69 66 72 63 6f 6e  66 69 67 20 2d 65 20 65  |n.ifrconfig -e e|
000008b0  63 30 20 62 6f 6f 74 70  0a 0a 7c 20 42 72 69 6e  |c0 bootp..| Brin|
000008c0  67 20 74 68 65 20 6c 6f  6f 70 62 61 63 6b 20 69  |g the loopback i|
000008d0  6e 74 65 72 66 61 63 65  20 75 70 0a 7c 20 49 46  |nterface up.| IF|
000008e0  20 22 3c 49 6e 65 74 24  45 72 72 6f 72 3e 22 20  | "<Inet$Error>" |
000008f0  3d 20 22 22 20 54 48 45  4e 20 69 66 63 6f 6e 66  |= "" THEN ifconf|
00000900  69 67 20 2d 65 20 6c 6f  30 20 6c 6f 6f 70 62 61  |ig -e lo0 loopba|
00000910  63 6b 0a 0a 7c 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |ck..|===========|
00000920  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000950  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 7c 0a 7c 20 54 68  |==========|.| Th|
00000960  69 73 20 73 65 63 6f 6e  64 20 70 61 72 74 20 69  |is second part i|
00000970  73 20 63 6f 6e 66 69 67  75 72 61 62 6c 65 2e 20  |s configurable. |
00000980  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000009a0  20 20 7c 0a 7c 20 20 20  20 20 20 20 20 20 20 20  |  |.|           |
000009b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000009e0  20 20 20 20 20 20 20 20  20 20 7c 0a 7c 20 57 68  |          |.| Wh|
000009f0  65 6e 20 79 6f 75 20 65  64 69 74 65 64 20 74 68  |en you edited th|
00000a00  65 20 21 43 6f 6e 66 69  67 75 72 65 20 66 69 6c  |e !Configure fil|
00000a10  65 2c 20 79 6f 75 20 73  65 74 20 77 68 65 74 68  |e, you set wheth|
00000a20  65 72 20 6f 72 20 6e 6f  74 20 74 6f 20 20 20 20  |er or not to    |
00000a30  20 20 7c 0a 7c 20 72 75  6e 20 52 6f 75 74 65 44  |  |.| run RouteD|
00000a40  2e 20 49 66 20 79 6f 75  20 64 69 64 20 6e 6f 74  |. If you did not|
00000a50  20 72 75 6e 20 52 6f 75  74 65 44 2c 20 61 6e 64  | run RouteD, and|
00000a60  20 6e 65 65 64 20 74 6f  20 65 73 74 61 62 6c 69  | need to establi|
00000a70  73 68 20 72 6f 75 74 65  73 20 7c 0a 7c 20 74 6f  |sh routes |.| to|
00000a80  20 72 65 6d 6f 74 65 20  6e 65 74 77 6f 72 6b 73  | remote networks|
00000a90  20 6f 72 20 68 6f 73 74  73 20 66 72 6f 6d 20 74  | or hosts from t|
00000aa0  68 69 73 20 68 6f 73 74  2c 20 79 6f 75 20 6d 75  |his host, you mu|
00000ab0  73 74 20 61 64 64 20 2a  52 6f 75 74 65 20 20 20  |st add *Route   |
00000ac0  20 20 7c 0a 7c 20 63 6f  6d 6d 61 6e 64 73 20 68  |  |.| commands h|
00000ad0  65 72 65 2e 20 20 20 20  20 20 20 20 20 20 20 20  |ere.            |
00000ae0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000b00  20 20 20 20 20 20 20 20  20 20 7c 0a 7c 20 20 20  |          |.|   |
00000b10  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000b50  20 20 7c 0a 7c 20 46 6f  72 20 65 78 61 6d 70 6c  |  |.| For exampl|
00000b60  65 2c 20 69 66 20 79 6f  75 72 20 6d 61 63 68 69  |e, if your machi|
00000b70  6e 65 20 69 73 20 63 6f  6e 6e 65 63 74 65 64 20  |ne is connected |
00000b80  74 6f 20 6e 65 74 20 31  2c 20 61 6e 64 20 79 6f  |to net 1, and yo|
00000b90  75 20 77 69 73 68 20 74  6f 20 7c 0a 7c 20 65 73  |u wish to |.| es|
00000ba0  74 61 62 6c 69 73 68 20  61 20 72 6f 75 74 65 20  |tablish a route |
00000bb0  74 6f 20 6e 65 74 20 32  20 76 69 61 20 74 68 65  |to net 2 via the|
00000bc0  20 69 6e 74 65 72 66 61  63 65 20 31 2e 30 2e 30  | interface 1.0.0|
00000bd0  2e 32 20 6f 6e 20 61 20  67 61 74 65 77 61 79 3a  |.2 on a gateway:|
00000be0  20 20 7c 0a 7c 20 20 20  20 20 20 20 20 20 20 20  |  |.|           |
00000bf0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000c20  20 20 20 20 20 20 20 20  20 20 7c 0a 7c 20 49 46  |          |.| IF|
00000c30  20 22 3c 49 6e 65 74 24  45 72 72 6f 72 3e 22 20  | "<Inet$Error>" |
00000c40  3d 20 22 22 20 54 48 45  4e 20 72 6f 75 74 65 20  |= "" THEN route |
00000c50  2d 65 20 61 64 64 20 6e  65 74 20 32 20 31 2e 30  |-e add net 2 1.0|
00000c60  2e 30 2e 32 20 31 20 20  20 20 20 20 20 20 20 20  |.0.2 1          |
00000c70  20 20 7c 0a 7c 20 20 20  20 20 20 20 20 20 20 20  |  |.|           |
00000c80  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000cb0  20 20 20 20 20 20 20 20  20 20 7c 0a 7c 20 28 54  |          |.| (T|
00000cc0  68 65 20 49 46 2e 2e 2e  54 48 45 4e 20 73 74 61  |he IF...THEN sta|
00000cd0  74 65 6d 65 6e 74 20 61  62 6f 76 65 20 69 73 20  |tement above is |
00000ce0  6e 65 63 65 73 73 61 72  79 2c 20 61 73 20 69 73  |necessary, as is|
00000cf0  20 74 68 65 20 27 2d 65  27 20 20 20 20 20 20 20  | the '-e'       |
00000d00  20 20 7c 0a 7c 20 70 61  72 61 6d 65 74 65 72 2e  |  |.| parameter.|
00000d10  29 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |)               |
00000d20  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000d40  20 20 20 20 20 20 20 20  20 20 7c 0a 7c 20 20 20  |          |.|   |
00000d50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000d90  20 20 7c 0a 7c 20 41 6c  74 65 72 6e 61 74 69 76  |  |.| Alternativ|
00000da0  65 6c 79 2c 20 79 6f 75  20 6d 61 79 20 62 65 20  |ely, you may be |
00000db0  72 75 6e 6e 69 6e 67 20  52 6f 75 74 65 44 20 6f  |running RouteD o|
00000dc0  6e 20 74 68 65 20 61 62  6f 76 65 20 67 61 74 65  |n the above gate|
00000dd0  77 61 79 2c 20 28 73 6f  20 20 7c 0a 7c 20 69 74  |way, (so  |.| it|
00000de0  20 6b 6e 6f 77 73 20 74  68 65 20 77 61 79 20 74  | knows the way t|
00000df0  6f 20 6f 74 68 65 72 20  6e 65 74 73 29 2c 20 62  |o other nets), b|
00000e00  75 74 20 6e 6f 74 20 6f  6e 20 79 6f 75 72 20 6d  |ut not on your m|
00000e10  61 63 68 69 6e 65 2e 20  59 6f 75 20 63 61 6e 20  |achine. You can |
00000e20  20 20 7c 0a 7c 20 73 65  6e 64 20 61 6c 6c 20 74  |  |.| send all t|
00000e30  72 61 66 66 69 63 20 64  65 73 74 69 6e 65 64 20  |raffic destined |
00000e40  66 6f 72 20 6f 74 68 65  72 20 6e 65 74 73 20 74  |for other nets t|
00000e50  6f 20 74 68 65 20 61 62  6f 76 65 20 67 61 74 65  |o the above gate|
00000e60  77 61 79 20 74 68 75 73  3a 20 7c 0a 7c 20 20 20  |way thus: |.|   |
00000e70  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000eb0  20 20 7c 0a 7c 20 49 46  20 22 3c 49 6e 65 74 24  |  |.| IF "<Inet$|
00000ec0  45 72 72 6f 72 3e 22 20  3d 20 22 22 20 54 48 45  |Error>" = "" THE|
00000ed0  4e 20 72 6f 75 74 65 20  2d 65 20 61 64 64 20 6e  |N route -e add n|
00000ee0  65 74 20 64 65 66 61 75  6c 74 20 31 2e 30 2e 30  |et default 1.0.0|
00000ef0  2e 32 20 31 20 20 20 20  20 20 7c 0a 7c 3d 3d 3d  |.2 1      |.|===|
00000f00  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000f40  3d 3d 7c 0a 0a 65 63 68  6f 20 68 65 6c 6c 6f 0a  |==|..echo hello.|
00000f50  0a 49 46 20 22 3c 49 6e  65 74 24 45 72 72 6f 72  |.IF "<Inet$Error|
00000f60  3e 22 20 3d 20 22 22 20  54 48 45 4e 20 72 6f 75  |>" = "" THEN rou|
00000f70  74 65 20 2d 65 20 61 64  64 20 6e 65 74 20 64 65  |te -e add net de|
00000f80  66 61 75 6c 74 20 31 33  31 2e 31 31 31 2e 32 31  |fault 131.111.21|
00000f90  33 2e 31 39 30 20 31 0a                           |3.190 1.|
00000f98