All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Adding examples in ip man page on basic use of the ip command.
@ 2011-11-24 12:00 Alex Juncu
  2011-11-24 19:12 ` Ben Hutchings
  2011-11-29  1:39 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Juncu @ 2011-11-24 12:00 UTC (permalink / raw)
  To: netdev, shemminger

---
  man/man8/ip.8 |   43 +++++++++++++++++++++++++++++++++++++++++++
  1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/man/man8/ip.8 b/man/man8/ip.8
index a20eca7..99c8953 100644
--- a/man/man8/ip.8
+++ b/man/man8/ip.8
@@ -2855,6 +2855,49 @@ can be
  .SS ip xfrm monitor - state monitoring for xfrm objects
  The xfrm objects to monitor can be optionally specified.

+.SH EXAMPLES
+.LP
+To turn on an interface:
+.RS
+.nf
+.B ip link set up dev eth0
+.fi
+.RE
+.LP
+To add an IPv4 address to an interface:
+.RS
+.nf
+.B ip address add 141.85.37.42/24 dev eth0
+.fi
+.RE
+.LP
+To add a default route in the IPv4 routing table using a next hop IP 
address:
+.RS
+.nf
+.B ip route add  default via 141.85.37.1
+.fi
+.RE
+.LP
+Equivalent ways of listing address information for all the interfaces:
+.RS
+.nf
+.B ip addr show
+.fi
+.RE
+.LP
+.RS
+.nf
+.B ip a s
+.fi
+.RE
+.LP
+.RS
+.nf
+.B ip a
+.fi
+.RE
+.LP
+
  .SH HISTORY
  .B ip
  was written by Alexey N. Kuznetsov and added in Linux 2.2.
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-29  1:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 12:00 [PATCH 1/1] Adding examples in ip man page on basic use of the ip command Alex Juncu
2011-11-24 19:12 ` Ben Hutchings
2011-11-29  1:39 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.