Home » Personal collection » Acorn hard disk » zipped_disks » 2000_netapps » Network/Internet/!Internet/files/Startup

Network/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 » zipped_disks » 2000_netapps
Filename: Network/Internet/!Internet/files/Startup
Read OK:
File size: 0F77 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> !!!!!! <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      |
|=====================================================================|

IF "<Inet$Error>" = "" THEN route -e add net default 131.111.213.190
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 21 21 21 21 21 21 20  |rIPMask> !!!!!! |
00000550  3c 49 6e 65 74 24 45 74  68 65 72 49 50 41 64 64  |<Inet$EtherIPAdd|
00000560  72 3e 20 0a 49 46 20 22  3c 49 6e 65 74 24 45 72  |r> .IF "<Inet$Er|
00000570  72 6f 72 3e 22 20 3d 20  22 22 20 41 4e 44 20 22  |ror>" = "" AND "|
00000580  3c 49 6e 65 74 24 45 74  68 65 72 49 50 41 64 64  |<Inet$EtherIPAdd|
00000590  72 3e 22 20 3d 20 22 72  65 76 61 72 70 22 20 54  |r>" = "revarp" T|
000005a0  48 45 4e 20 72 75 6e 20  49 6e 65 74 3a 62 69 6e  |HEN run Inet:bin|
000005b0  2e 69 66 72 63 6f 6e 66  69 67 20 2d 65 20 3c 49  |.ifrconfig -e <I|
000005c0  6e 65 74 24 45 74 68 65  72 54 79 70 65 3e 20 72  |net$EtherType> r|
000005d0  65 76 61 72 70 0a 49 46  20 22 3c 49 6e 65 74 24  |evarp.IF "<Inet$|
000005e0  45 72 72 6f 72 3e 22 20  3d 20 22 22 20 41 4e 44  |Error>" = "" AND|
000005f0  20 22 3c 49 6e 65 74 24  45 74 68 65 72 49 50 41  | "<Inet$EtherIPA|
00000600  64 64 72 3e 22 20 3d 20  22 62 6f 6f 74 70 22 20  |ddr>" = "bootp" |
00000610  54 48 45 4e 20 72 75 6e  20 49 6e 65 74 3a 62 69  |THEN run Inet:bi|
00000620  6e 2e 69 66 72 63 6f 6e  66 69 67 20 2d 65 20 3c  |n.ifrconfig -e <|
00000630  49 6e 65 74 24 45 74 68  65 72 54 79 70 65 3e 20  |Inet$EtherType> |
00000640  62 6f 6f 74 70 0a 0a 7c  20 4c 6f 61 64 20 64 72  |bootp..| Load dr|
00000650  69 76 65 72 20 61 6e 64  20 69 6e 69 74 69 61 6c  |iver and initial|
00000660  69 73 65 20 45 63 6f 6e  65 74 20 69 6e 74 65 72  |ise Econet inter|
00000670  66 61 63 65 2c 20 69 66  20 72 65 71 75 69 72 65  |face, if require|
00000680  64 0a 0a 49 46 20 22 3c  49 6e 65 74 24 45 72 72  |d..IF "<Inet$Err|
00000690  6f 72 3e 22 20 3d 20 22  22 20 41 4e 44 20 22 3c  |or>" = "" AND "<|
000006a0  49 6e 65 74 24 45 63 6f  49 50 41 64 64 72 3e 22  |Inet$EcoIPAddr>"|
000006b0  20 3c 3e 20 22 22 20 54  48 45 4e 20 72 6d 6c 6f  | <> "" THEN rmlo|
000006c0  61 64 20 53 79 73 74 65  6d 3a 4d 6f 64 75 6c 65  |ad System:Module|
000006d0  73 2e 4e 65 74 77 6f 72  6b 2e 45 63 6f 6e 65 74  |s.Network.Econet|
000006e0  41 0a 73 65 74 20 49 6e  65 74 24 45 74 68 65 72  |A.set Inet$Ether|
000006f0  54 79 70 65 20 3c 49 6e  65 74 24 45 74 68 65 72  |Type <Inet$Ether|
00000700  54 79 70 65 41 3e 0a 75  6e 73 65 74 20 49 6e 65  |TypeA>.unset Ine|
00000710  74 24 45 74 68 65 72 54  79 70 65 41 0a 49 46 20  |t$EtherTypeA.IF |
00000720  22 3c 49 6e 65 74 24 45  72 72 6f 72 3e 22 20 3d  |"<Inet$Error>" =|
00000730  20 22 22 20 41 4e 44 20  22 3c 49 6e 65 74 24 45  | "" AND "<Inet$E|
00000740  63 6f 49 50 41 64 64 72  3e 22 20 3c 3e 20 22 22  |coIPAddr>" <> ""|
00000750  20 41 4e 44 20 22 3c 49  6e 65 74 24 45 63 6f 49  | AND "<Inet$EcoI|
00000760  50 41 64 64 72 3e 22 20  3c 3e 20 22 72 65 76 61  |PAddr>" <> "reva|
00000770  72 70 22 20 41 4e 44 20  22 3c 49 6e 65 74 24 45  |rp" AND "<Inet$E|
00000780  63 6f 49 50 41 64 64 72  3e 22 20 3c 3e 20 22 62  |coIPAddr>" <> "b|
00000790  6f 6f 74 70 22 20 54 48  45 4e 20 72 75 6e 20 49  |ootp" THEN run I|
000007a0  6e 65 74 3a 62 69 6e 2e  69 66 63 6f 6e 66 69 67  |net:bin.ifconfig|
000007b0  20 2d 65 20 65 63 30 20  6e 65 74 6d 61 73 6b 20  | -e ec0 netmask |
000007c0  3c 49 6e 65 74 24 45 63  6f 49 50 4d 61 73 6b 3e  |<Inet$EcoIPMask>|
000007d0  20 3c 49 6e 65 74 24 45  63 6f 49 50 41 64 64 72  | <Inet$EcoIPAddr|
000007e0  3e 0a 49 46 20 22 3c 49  6e 65 74 24 45 72 72 6f  |>.IF "<Inet$Erro|
000007f0  72 3e 22 20 3d 20 22 22  20 41 4e 44 20 22 3c 49  |r>" = "" AND "<I|
00000800  6e 65 74 24 45 63 6f 49  50 41 64 64 72 3e 22 20  |net$EcoIPAddr>" |
00000810  3d 20 22 72 65 76 61 72  70 22 20 54 48 45 4e 20  |= "revarp" THEN |
00000820  72 75 6e 20 49 6e 65 74  3a 62 69 6e 2e 69 66 72  |run Inet:bin.ifr|
00000830  63 6f 6e 66 69 67 20 2d  65 20 65 63 30 20 72 65  |config -e ec0 re|
00000840  76 61 72 70 0a 49 46 20  22 3c 49 6e 65 74 24 45  |varp.IF "<Inet$E|
00000850  72 72 6f 72 3e 22 20 3d  20 22 22 20 41 4e 44 20  |rror>" = "" AND |
00000860  22 3c 49 6e 65 74 24 45  63 6f 49 50 41 64 64 72  |"<Inet$EcoIPAddr|
00000870  3e 22 20 3d 20 22 62 6f  6f 74 70 22 20 54 48 45  |>" = "bootp" THE|
00000880  4e 20 72 75 6e 20 49 6e  65 74 3a 62 69 6e 2e 69  |N run Inet:bin.i|
00000890  66 72 63 6f 6e 66 69 67  20 2d 65 20 65 63 30 20  |frconfig -e ec0 |
000008a0  62 6f 6f 74 70 0a 0a 7c  20 42 72 69 6e 67 20 74  |bootp..| Bring t|
000008b0  68 65 20 6c 6f 6f 70 62  61 63 6b 20 69 6e 74 65  |he loopback inte|
000008c0  72 66 61 63 65 20 75 70  0a 7c 20 49 46 20 22 3c  |rface up.| IF "<|
000008d0  49 6e 65 74 24 45 72 72  6f 72 3e 22 20 3d 20 22  |Inet$Error>" = "|
000008e0  22 20 54 48 45 4e 20 69  66 63 6f 6e 66 69 67 20  |" THEN ifconfig |
000008f0  2d 65 20 6c 6f 30 20 6c  6f 6f 70 62 61 63 6b 0a  |-e lo0 loopback.|
00000900  0a 7c 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |.|==============|
00000910  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000940  3d 3d 3d 3d 3d 3d 3d 7c  0a 7c 20 54 68 69 73 20  |=======|.| This |
00000950  73 65 63 6f 6e 64 20 70  61 72 74 20 69 73 20 63  |second part is c|
00000960  6f 6e 66 69 67 75 72 61  62 6c 65 2e 20 20 20 20  |onfigurable.    |
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  20 20 20 20 20 20 20 7c  |               ||
00000990  0a 7c 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.|              |
000009a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000009d0  20 20 20 20 20 20 20 7c  0a 7c 20 57 68 65 6e 20  |       |.| When |
000009e0  79 6f 75 20 65 64 69 74  65 64 20 74 68 65 20 21  |you edited the !|
000009f0  43 6f 6e 66 69 67 75 72  65 20 66 69 6c 65 2c 20  |Configure file, |
00000a00  79 6f 75 20 73 65 74 20  77 68 65 74 68 65 72 20  |you set whether |
00000a10  6f 72 20 6e 6f 74 20 74  6f 20 20 20 20 20 20 7c  |or not to      ||
00000a20  0a 7c 20 72 75 6e 20 52  6f 75 74 65 44 2e 20 49  |.| run RouteD. I|
00000a30  66 20 79 6f 75 20 64 69  64 20 6e 6f 74 20 72 75  |f you did not ru|
00000a40  6e 20 52 6f 75 74 65 44  2c 20 61 6e 64 20 6e 65  |n RouteD, and ne|
00000a50  65 64 20 74 6f 20 65 73  74 61 62 6c 69 73 68 20  |ed to establish |
00000a60  72 6f 75 74 65 73 20 7c  0a 7c 20 74 6f 20 72 65  |routes |.| to re|
00000a70  6d 6f 74 65 20 6e 65 74  77 6f 72 6b 73 20 6f 72  |mote networks or|
00000a80  20 68 6f 73 74 73 20 66  72 6f 6d 20 74 68 69 73  | hosts from this|
00000a90  20 68 6f 73 74 2c 20 79  6f 75 20 6d 75 73 74 20  | host, you must |
00000aa0  61 64 64 20 2a 52 6f 75  74 65 20 20 20 20 20 7c  |add *Route     ||
00000ab0  0a 7c 20 63 6f 6d 6d 61  6e 64 73 20 68 65 72 65  |.| commands here|
00000ac0  2e 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000ad0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000af0  20 20 20 20 20 20 20 7c  0a 7c 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  20 20 20 20 20 20 20 7c  |               ||
00000b40  0a 7c 20 46 6f 72 20 65  78 61 6d 70 6c 65 2c 20  |.| For example, |
00000b50  69 66 20 79 6f 75 72 20  6d 61 63 68 69 6e 65 20  |if your machine |
00000b60  69 73 20 63 6f 6e 6e 65  63 74 65 64 20 74 6f 20  |is connected to |
00000b70  6e 65 74 20 31 2c 20 61  6e 64 20 79 6f 75 20 77  |net 1, and you w|
00000b80  69 73 68 20 74 6f 20 7c  0a 7c 20 65 73 74 61 62  |ish to |.| estab|
00000b90  6c 69 73 68 20 61 20 72  6f 75 74 65 20 74 6f 20  |lish a route to |
00000ba0  6e 65 74 20 32 20 76 69  61 20 74 68 65 20 69 6e  |net 2 via the in|
00000bb0  74 65 72 66 61 63 65 20  31 2e 30 2e 30 2e 32 20  |terface 1.0.0.2 |
00000bc0  6f 6e 20 61 20 67 61 74  65 77 61 79 3a 20 20 7c  |on a gateway:  ||
00000bd0  0a 7c 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.|              |
00000be0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000c10  20 20 20 20 20 20 20 7c  0a 7c 20 49 46 20 22 3c  |       |.| IF "<|
00000c20  49 6e 65 74 24 45 72 72  6f 72 3e 22 20 3d 20 22  |Inet$Error>" = "|
00000c30  22 20 54 48 45 4e 20 72  6f 75 74 65 20 2d 65 20  |" THEN route -e |
00000c40  61 64 64 20 6e 65 74 20  32 20 31 2e 30 2e 30 2e  |add net 2 1.0.0.|
00000c50  32 20 31 20 20 20 20 20  20 20 20 20 20 20 20 7c  |2 1            ||
00000c60  0a 7c 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.|              |
00000c70  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000ca0  20 20 20 20 20 20 20 7c  0a 7c 20 28 54 68 65 20  |       |.| (The |
00000cb0  49 46 2e 2e 2e 54 48 45  4e 20 73 74 61 74 65 6d  |IF...THEN statem|
00000cc0  65 6e 74 20 61 62 6f 76  65 20 69 73 20 6e 65 63  |ent above is nec|
00000cd0  65 73 73 61 72 79 2c 20  61 73 20 69 73 20 74 68  |essary, as is th|
00000ce0  65 20 27 2d 65 27 20 20  20 20 20 20 20 20 20 7c  |e '-e'         ||
00000cf0  0a 7c 20 70 61 72 61 6d  65 74 65 72 2e 29 20 20  |.| parameter.)  |
00000d00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000d30  20 20 20 20 20 20 20 7c  0a 7c 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  20 20 20 20 20 20 20 7c  |               ||
00000d80  0a 7c 20 41 6c 74 65 72  6e 61 74 69 76 65 6c 79  |.| Alternatively|
00000d90  2c 20 79 6f 75 20 6d 61  79 20 62 65 20 72 75 6e  |, you may be run|
00000da0  6e 69 6e 67 20 52 6f 75  74 65 44 20 6f 6e 20 74  |ning RouteD on t|
00000db0  68 65 20 61 62 6f 76 65  20 67 61 74 65 77 61 79  |he above gateway|
00000dc0  2c 20 28 73 6f 20 20 7c  0a 7c 20 69 74 20 6b 6e  |, (so  |.| it kn|
00000dd0  6f 77 73 20 74 68 65 20  77 61 79 20 74 6f 20 6f  |ows the way to o|
00000de0  74 68 65 72 20 6e 65 74  73 29 2c 20 62 75 74 20  |ther nets), but |
00000df0  6e 6f 74 20 6f 6e 20 79  6f 75 72 20 6d 61 63 68  |not on your mach|
00000e00  69 6e 65 2e 20 59 6f 75  20 63 61 6e 20 20 20 7c  |ine. You can   ||
00000e10  0a 7c 20 73 65 6e 64 20  61 6c 6c 20 74 72 61 66  |.| send all traf|
00000e20  66 69 63 20 64 65 73 74  69 6e 65 64 20 66 6f 72  |fic destined for|
00000e30  20 6f 74 68 65 72 20 6e  65 74 73 20 74 6f 20 74  | other nets to t|
00000e40  68 65 20 61 62 6f 76 65  20 67 61 74 65 77 61 79  |he above gateway|
00000e50  20 74 68 75 73 3a 20 7c  0a 7c 20 20 20 20 20 20  | thus: |.|      |
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  20 20 20 20 20 20 20 7c  |               ||
00000ea0  0a 7c 20 49 46 20 22 3c  49 6e 65 74 24 45 72 72  |.| IF "<Inet$Err|
00000eb0  6f 72 3e 22 20 3d 20 22  22 20 54 48 45 4e 20 72  |or>" = "" THEN r|
00000ec0  6f 75 74 65 20 2d 65 20  61 64 64 20 6e 65 74 20  |oute -e add net |
00000ed0  64 65 66 61 75 6c 74 20  31 2e 30 2e 30 2e 32 20  |default 1.0.0.2 |
00000ee0  31 20 20 20 20 20 20 7c  0a 7c 3d 3d 3d 3d 3d 3d  |1      |.|======|
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  3d 3d 3d 3d 3d 3d 3d 7c  |===============||
00000f30  0a 0a 49 46 20 22 3c 49  6e 65 74 24 45 72 72 6f  |..IF "<Inet$Erro|
00000f40  72 3e 22 20 3d 20 22 22  20 54 48 45 4e 20 72 6f  |r>" = "" THEN ro|
00000f50  75 74 65 20 2d 65 20 61  64 64 20 6e 65 74 20 64  |ute -e add net d|
00000f60  65 66 61 75 6c 74 20 31  33 31 2e 31 31 31 2e 32  |efault 131.111.2|
00000f70  31 33 2e 31 39 30 0a                              |13.190.|
00000f77