Changes between Version 6 and Version 7 of UsersGuide/Networking
- Timestamp:
- 2012-06-13T22:10:10Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersGuide/Networking
v6 v7 35 35 }}} 36 36 37 Now, let's assume you want to configure HelenOS to have address 192.168.1.4. This is simply achieved by typing: 37 Let's check the available IP links: 38 {{{ 39 / # loc show-cat iplink 40 iplink: 41 net/loopback : loopip 42 net/eth1 : ethip 43 }}} 44 45 `net/eth1` is one of the available links, in this case the first discovered Ethernet adapter. 46 Now, let's assume you want to configure net/eth1 to have address 192.168.1.4. This is simply achieved by typing: 38 47 39 48 {{{ 40 49 / # inet create 192.168.1.4/24 net/eth1 myaddr 41 50 }}} 42 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. 51 `myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inet` commands. 44 52 45 53 You may also want to configure the default gateway for your networked HelenOS system. Provided the gateway is at 192.168.1.1, type: