Changes between Version 5 and Version 6 of UsersGuide/Networking
- Timestamp:
- 2012-05-15T19:58:05Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersGuide/Networking
v5 v6 20 20 == Network configuration == 21 21 22 As of now, network can be configure only manually using the `inet cfg` command.22 As of now, network can be configure only manually using the `inet` command. 23 23 24 24 === Manual network configuration === 25 25 26 Manual network configuration is quite easy. You can always check the current setting via the `inet cfg` command without arguments:26 Manual network configuration is quite easy. You can always check the current setting via the `inet` command without arguments: 27 27 28 28 {{{ 29 / # inet cfg29 / # inet 30 30 Configured addresses: 31 [Addr/Width] [Link-Name] [Addr-Name] [Def-MTU] 31 32 127.0.0.1/24 net/loopback v4a 1500 32 33 Static routes: … … 37 38 38 39 {{{ 39 / # inet cfgcreate 192.168.1.4/24 net/eth1 myaddr40 / # inet create 192.168.1.4/24 net/eth1 myaddr 40 41 }}} 41 42 42 `net/eth1` is one of the available links, in this case the first discovered network card. You may use the `loc info` command to see what other links are there in the system. `myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inetcfg` commands.43 `net/eth1` is one of the available links, in this case the first discovered network card. You may use the `loc show-cat iplink` command to see what other links are there in the system. `myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inet` commands. 43 44 44 45 You may also want to configure the default gateway for your networked HelenOS system. Provided the gateway is at 192.168.1.1, type: 45 46 46 47 {{{ 47 / # inet cfgadd-sr 0.0.0.0/0 192.168.1.1 default48 / # inet add-sr 0.0.0.0/0 192.168.1.1 default 48 49 }}} 49 50 50 Your HelenOS system is now configured for networking. Note that `inet cfg` understands also other commands that you can use to fix any potential problems with the configuration. To see the complete list, just type:51 Your HelenOS system is now configured for networking. Note that `inet` understands also other commands that you can use to fix any potential problems with the configuration. To see the complete list, just type: 51 52 52 53 {{{ 53 / # inet cfg-h54 / # inet -h 54 55 }}} 55 56