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

Telnet/Internet/!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 » web
Filename: Telnet/Internet/!Internet/files/Startup
Read OK:
File size: 0F2A bytes
Load address: 0000
Exec address: 0000
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> <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      |
|=====================================================================|
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 3c 49 6e 65 74 24 45  |rIPMask> <Inet$E|
00000550  74 68 65 72 49 50 41 64  64 72 3e 20 0a 49 46 20  |therIPAddr> .IF |
00000560  22 3c 49 6e 65 74 24 45  72 72 6f 72 3e 22 20 3d  |"<Inet$Error>" =|
00000570  20 22 22 20 41 4e 44 20  22 3c 49 6e 65 74 24 45  | "" AND "<Inet$E|
00000580  74 68 65 72 49 50 41 64  64 72 3e 22 20 3d 20 22  |therIPAddr>" = "|
00000590  72 65 76 61 72 70 22 20  54 48 45 4e 20 72 75 6e  |revarp" THEN run|
000005a0  20 49 6e 65 74 3a 62 69  6e 2e 69 66 72 63 6f 6e  | Inet:bin.ifrcon|
000005b0  66 69 67 20 2d 65 20 3c  49 6e 65 74 24 45 74 68  |fig -e <Inet$Eth|
000005c0  65 72 54 79 70 65 3e 20  72 65 76 61 72 70 0a 49  |erType> revarp.I|
000005d0  46 20 22 3c 49 6e 65 74  24 45 72 72 6f 72 3e 22  |F "<Inet$Error>"|
000005e0  20 3d 20 22 22 20 41 4e  44 20 22 3c 49 6e 65 74  | = "" AND "<Inet|
000005f0  24 45 74 68 65 72 49 50  41 64 64 72 3e 22 20 3d  |$EtherIPAddr>" =|
00000600  20 22 62 6f 6f 74 70 22  20 54 48 45 4e 20 72 75  | "bootp" THEN ru|
00000610  6e 20 49 6e 65 74 3a 62  69 6e 2e 69 66 72 63 6f  |n Inet:bin.ifrco|
00000620  6e 66 69 67 20 2d 65 20  3c 49 6e 65 74 24 45 74  |nfig -e <Inet$Et|
00000630  68 65 72 54 79 70 65 3e  20 62 6f 6f 74 70 0a 0a  |herType> bootp..|
00000640  7c 20 4c 6f 61 64 20 64  72 69 76 65 72 20 61 6e  || Load driver an|
00000650  64 20 69 6e 69 74 69 61  6c 69 73 65 20 45 63 6f  |d initialise Eco|
00000660  6e 65 74 20 69 6e 74 65  72 66 61 63 65 2c 20 69  |net interface, i|
00000670  66 20 72 65 71 75 69 72  65 64 0a 0a 49 46 20 22  |f required..IF "|
00000680  3c 49 6e 65 74 24 45 72  72 6f 72 3e 22 20 3d 20  |<Inet$Error>" = |
00000690  22 22 20 41 4e 44 20 22  3c 49 6e 65 74 24 45 63  |"" AND "<Inet$Ec|
000006a0  6f 49 50 41 64 64 72 3e  22 20 3c 3e 20 22 22 20  |oIPAddr>" <> "" |
000006b0  54 48 45 4e 20 72 6d 6c  6f 61 64 20 53 79 73 74  |THEN rmload Syst|
000006c0  65 6d 3a 4d 6f 64 75 6c  65 73 2e 4e 65 74 77 6f  |em:Modules.Netwo|
000006d0  72 6b 2e 45 63 6f 6e 65  74 41 0a 73 65 74 20 49  |rk.EconetA.set I|
000006e0  6e 65 74 24 45 74 68 65  72 54 79 70 65 20 3c 49  |net$EtherType <I|
000006f0  6e 65 74 24 45 74 68 65  72 54 79 70 65 41 3e 0a  |net$EtherTypeA>.|
00000700  75 6e 73 65 74 20 49 6e  65 74 24 45 74 68 65 72  |unset Inet$Ether|
00000710  54 79 70 65 41 0a 49 46  20 22 3c 49 6e 65 74 24  |TypeA.IF "<Inet$|
00000720  45 72 72 6f 72 3e 22 20  3d 20 22 22 20 41 4e 44  |Error>" = "" AND|
00000730  20 22 3c 49 6e 65 74 24  45 63 6f 49 50 41 64 64  | "<Inet$EcoIPAdd|
00000740  72 3e 22 20 3c 3e 20 22  22 20 41 4e 44 20 22 3c  |r>" <> "" AND "<|
00000750  49 6e 65 74 24 45 63 6f  49 50 41 64 64 72 3e 22  |Inet$EcoIPAddr>"|
00000760  20 3c 3e 20 22 72 65 76  61 72 70 22 20 41 4e 44  | <> "revarp" AND|
00000770  20 22 3c 49 6e 65 74 24  45 63 6f 49 50 41 64 64  | "<Inet$EcoIPAdd|
00000780  72 3e 22 20 3c 3e 20 22  62 6f 6f 74 70 22 20 54  |r>" <> "bootp" T|
00000790  48 45 4e 20 72 75 6e 20  49 6e 65 74 3a 62 69 6e  |HEN run Inet:bin|
000007a0  2e 69 66 63 6f 6e 66 69  67 20 2d 65 20 65 63 30  |.ifconfig -e ec0|
000007b0  20 6e 65 74 6d 61 73 6b  20 3c 49 6e 65 74 24 45  | netmask <Inet$E|
000007c0  63 6f 49 50 4d 61 73 6b  3e 20 3c 49 6e 65 74 24  |coIPMask> <Inet$|
000007d0  45 63 6f 49 50 41 64 64  72 3e 0a 49 46 20 22 3c  |EcoIPAddr>.IF "<|
000007e0  49 6e 65 74 24 45 72 72  6f 72 3e 22 20 3d 20 22  |Inet$Error>" = "|
000007f0  22 20 41 4e 44 20 22 3c  49 6e 65 74 24 45 63 6f  |" AND "<Inet$Eco|
00000800  49 50 41 64 64 72 3e 22  20 3d 20 22 72 65 76 61  |IPAddr>" = "reva|
00000810  72 70 22 20 54 48 45 4e  20 72 75 6e 20 49 6e 65  |rp" THEN run Ine|
00000820  74 3a 62 69 6e 2e 69 66  72 63 6f 6e 66 69 67 20  |t:bin.ifrconfig |
00000830  2d 65 20 65 63 30 20 72  65 76 61 72 70 0a 49 46  |-e ec0 revarp.IF|
00000840  20 22 3c 49 6e 65 74 24  45 72 72 6f 72 3e 22 20  | "<Inet$Error>" |
00000850  3d 20 22 22 20 41 4e 44  20 22 3c 49 6e 65 74 24  |= "" AND "<Inet$|
00000860  45 63 6f 49 50 41 64 64  72 3e 22 20 3d 20 22 62  |EcoIPAddr>" = "b|
00000870  6f 6f 74 70 22 20 54 48  45 4e 20 72 75 6e 20 49  |ootp" THEN run I|
00000880  6e 65 74 3a 62 69 6e 2e  69 66 72 63 6f 6e 66 69  |net:bin.ifrconfi|
00000890  67 20 2d 65 20 65 63 30  20 62 6f 6f 74 70 0a 0a  |g -e ec0 bootp..|
000008a0  7c 20 42 72 69 6e 67 20  74 68 65 20 6c 6f 6f 70  || Bring the loop|
000008b0  62 61 63 6b 20 69 6e 74  65 72 66 61 63 65 20 75  |back interface u|
000008c0  70 0a 7c 20 49 46 20 22  3c 49 6e 65 74 24 45 72  |p.| IF "<Inet$Er|
000008d0  72 6f 72 3e 22 20 3d 20  22 22 20 54 48 45 4e 20  |ror>" = "" THEN |
000008e0  69 66 63 6f 6e 66 69 67  20 2d 65 20 6c 6f 30 20  |ifconfig -e lo0 |
000008f0  6c 6f 6f 70 62 61 63 6b  0a 0a 7c 3d 3d 3d 3d 3d  |loopback..|=====|
00000900  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000940  7c 0a 7c 20 54 68 69 73  20 73 65 63 6f 6e 64 20  ||.| This second |
00000950  70 61 72 74 20 69 73 20  63 6f 6e 66 69 67 75 72  |part is configur|
00000960  61 62 6c 65 2e 20 20 20  20 20 20 20 20 20 20 20  |able.           |
00000970  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000980  20 20 20 20 20 20 20 20  7c 0a 7c 20 20 20 20 20  |        |.|     |
00000990  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000009d0  7c 0a 7c 20 57 68 65 6e  20 79 6f 75 20 65 64 69  ||.| When you edi|
000009e0  74 65 64 20 74 68 65 20  21 43 6f 6e 66 69 67 75  |ted the !Configu|
000009f0  72 65 20 66 69 6c 65 2c  20 79 6f 75 20 73 65 74  |re file, you set|
00000a00  20 77 68 65 74 68 65 72  20 6f 72 20 6e 6f 74 20  | whether or not |
00000a10  74 6f 20 20 20 20 20 20  7c 0a 7c 20 72 75 6e 20  |to      |.| run |
00000a20  52 6f 75 74 65 44 2e 20  49 66 20 79 6f 75 20 64  |RouteD. If you d|
00000a30  69 64 20 6e 6f 74 20 72  75 6e 20 52 6f 75 74 65  |id not run Route|
00000a40  44 2c 20 61 6e 64 20 6e  65 65 64 20 74 6f 20 65  |D, and need to e|
00000a50  73 74 61 62 6c 69 73 68  20 72 6f 75 74 65 73 20  |stablish routes |
00000a60  7c 0a 7c 20 74 6f 20 72  65 6d 6f 74 65 20 6e 65  ||.| to remote ne|
00000a70  74 77 6f 72 6b 73 20 6f  72 20 68 6f 73 74 73 20  |tworks or hosts |
00000a80  66 72 6f 6d 20 74 68 69  73 20 68 6f 73 74 2c 20  |from this host, |
00000a90  79 6f 75 20 6d 75 73 74  20 61 64 64 20 2a 52 6f  |you must add *Ro|
00000aa0  75 74 65 20 20 20 20 20  7c 0a 7c 20 63 6f 6d 6d  |ute     |.| comm|
00000ab0  61 6e 64 73 20 68 65 72  65 2e 20 20 20 20 20 20  |ands here.      |
00000ac0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000af0  7c 0a 7c 20 20 20 20 20  20 20 20 20 20 20 20 20  ||.|             |
00000b00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000b30  20 20 20 20 20 20 20 20  7c 0a 7c 20 46 6f 72 20  |        |.| For |
00000b40  65 78 61 6d 70 6c 65 2c  20 69 66 20 79 6f 75 72  |example, if your|
00000b50  20 6d 61 63 68 69 6e 65  20 69 73 20 63 6f 6e 6e  | machine is conn|
00000b60  65 63 74 65 64 20 74 6f  20 6e 65 74 20 31 2c 20  |ected to net 1, |
00000b70  61 6e 64 20 79 6f 75 20  77 69 73 68 20 74 6f 20  |and you wish to |
00000b80  7c 0a 7c 20 65 73 74 61  62 6c 69 73 68 20 61 20  ||.| establish a |
00000b90  72 6f 75 74 65 20 74 6f  20 6e 65 74 20 32 20 76  |route to net 2 v|
00000ba0  69 61 20 74 68 65 20 69  6e 74 65 72 66 61 63 65  |ia the interface|
00000bb0  20 31 2e 30 2e 30 2e 32  20 6f 6e 20 61 20 67 61  | 1.0.0.2 on a ga|
00000bc0  74 65 77 61 79 3a 20 20  7c 0a 7c 20 20 20 20 20  |teway:  |.|     |
00000bd0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000c10  7c 0a 7c 20 49 46 20 22  3c 49 6e 65 74 24 45 72  ||.| IF "<Inet$Er|
00000c20  72 6f 72 3e 22 20 3d 20  22 22 20 54 48 45 4e 20  |ror>" = "" THEN |
00000c30  72 6f 75 74 65 20 2d 65  20 61 64 64 20 6e 65 74  |route -e add net|
00000c40  20 32 20 31 2e 30 2e 30  2e 32 20 31 20 20 20 20  | 2 1.0.0.2 1    |
00000c50  20 20 20 20 20 20 20 20  7c 0a 7c 20 20 20 20 20  |        |.|     |
00000c60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000ca0  7c 0a 7c 20 28 54 68 65  20 49 46 2e 2e 2e 54 48  ||.| (The IF...TH|
00000cb0  45 4e 20 73 74 61 74 65  6d 65 6e 74 20 61 62 6f  |EN statement abo|
00000cc0  76 65 20 69 73 20 6e 65  63 65 73 73 61 72 79 2c  |ve is necessary,|
00000cd0  20 61 73 20 69 73 20 74  68 65 20 27 2d 65 27 20  | as is the '-e' |
00000ce0  20 20 20 20 20 20 20 20  7c 0a 7c 20 70 61 72 61  |        |.| para|
00000cf0  6d 65 74 65 72 2e 29 20  20 20 20 20 20 20 20 20  |meter.)         |
00000d00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000d30  7c 0a 7c 20 20 20 20 20  20 20 20 20 20 20 20 20  ||.|             |
00000d40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000d70  20 20 20 20 20 20 20 20  7c 0a 7c 20 41 6c 74 65  |        |.| Alte|
00000d80  72 6e 61 74 69 76 65 6c  79 2c 20 79 6f 75 20 6d  |rnatively, you m|
00000d90  61 79 20 62 65 20 72 75  6e 6e 69 6e 67 20 52 6f  |ay be running Ro|
00000da0  75 74 65 44 20 6f 6e 20  74 68 65 20 61 62 6f 76  |uteD on the abov|
00000db0  65 20 67 61 74 65 77 61  79 2c 20 28 73 6f 20 20  |e gateway, (so  |
00000dc0  7c 0a 7c 20 69 74 20 6b  6e 6f 77 73 20 74 68 65  ||.| it knows the|
00000dd0  20 77 61 79 20 74 6f 20  6f 74 68 65 72 20 6e 65  | way to other ne|
00000de0  74 73 29 2c 20 62 75 74  20 6e 6f 74 20 6f 6e 20  |ts), but not on |
00000df0  79 6f 75 72 20 6d 61 63  68 69 6e 65 2e 20 59 6f  |your machine. Yo|
00000e00  75 20 63 61 6e 20 20 20  7c 0a 7c 20 73 65 6e 64  |u can   |.| send|
00000e10  20 61 6c 6c 20 74 72 61  66 66 69 63 20 64 65 73  | all traffic des|
00000e20  74 69 6e 65 64 20 66 6f  72 20 6f 74 68 65 72 20  |tined for other |
00000e30  6e 65 74 73 20 74 6f 20  74 68 65 20 61 62 6f 76  |nets to the abov|
00000e40  65 20 67 61 74 65 77 61  79 20 74 68 75 73 3a 20  |e gateway thus: |
00000e50  7c 0a 7c 20 20 20 20 20  20 20 20 20 20 20 20 20  ||.|             |
00000e60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000e90  20 20 20 20 20 20 20 20  7c 0a 7c 20 49 46 20 22  |        |.| IF "|
00000ea0  3c 49 6e 65 74 24 45 72  72 6f 72 3e 22 20 3d 20  |<Inet$Error>" = |
00000eb0  22 22 20 54 48 45 4e 20  72 6f 75 74 65 20 2d 65  |"" THEN route -e|
00000ec0  20 61 64 64 20 6e 65 74  20 64 65 66 61 75 6c 74  | add net default|
00000ed0  20 31 2e 30 2e 30 2e 32  20 31 20 20 20 20 20 20  | 1.0.0.2 1      |
00000ee0  7c 0a 7c 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  ||.|=============|
00000ef0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000f20  3d 3d 3d 3d 3d 3d 3d 3d  7c 0a                    |========|.|
00000f2a