Skip to content

Commit 72086db

Browse files
committed
Add info on showing current ip addresses and link to ipadm manual
1 parent b7a6c3f commit 72086db

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

docs/handbook/systems-administration.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,11 +1751,19 @@ Enable the default physical service with `svcadm` and configure the `interface`:
17511751
# svcadm enable physical:default
17521752
```
17531753

1754-
There are multiple ways to configure the interface : using sysding or directly with ipadm.
1754+
There are multiple ways to configure the interface : using `sysding` or directly with [`ipadm`](https://illumos.org/man/8/ipadm).
17551755

1756-
For more information on sysding, see the section on Configuring and Tuning.
1756+
For more information on `sysding`, see the section on Configuring and Tuning.
17571757

1758-
To configure an interface with ipadm:
1758+
To show the currently assigned addresses, you can use `ipadm` with no arguments (same as using the `show-addr` argument). For example, a system with one interface using DHCP and IPv4 would produce this output:
1759+
1760+
```
1761+
ADDROBJ TYPE STATE ADDR
1762+
lo0/v4 static ok 127.0.0.1/8
1763+
e1000g0/_b dhcp ok 192.168.0.10/24
1764+
```
1765+
1766+
To configure an interface with `ipadm`:
17591767

17601768
```bash
17611769
# ipadm create-addr -T static -a local=192.168.1.22/24 bge0/v4static
@@ -1769,7 +1777,7 @@ or
17691777

17701778
The previous example sets up DHCP without using NWAM. NWAM is more than DHCP, because NWAM automatically configures any new interfaces, while the above way to manually setup DHCP is fixed for a specific interface.
17711779

1772-
If you do not know what the interface name is (bge0 in this case); then type in
1780+
If you do not know what the interface name is (`bge0` in this case); then type in
17731781

17741782
```bash
17751783
$ dladm show-link
@@ -1797,7 +1805,7 @@ or
17971805
# Enter in your gateways IP
17981806
```
17991807

1800-
or use the /etc/sysding.conf file to configure a default router and DNS servers.
1808+
or use the `/etc/sysding.conf` file to configure a default router and DNS servers.
18011809

18021810
Set DNS server(s)
18031811

0 commit comments

Comments
 (0)