[networking-guide] master: Replace ifconfig with "ip link show" (c55228a)
stephenw at fedoraproject.org
stephenw at fedoraproject.org
Wed Sep 3 19:57:14 UTC 2014
Repository : http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : master
>---------------------------------------------------------------
commit c55228ad614a4c70a7c6e1c4b2bcbfe984eadfba
Author: Stephen Wadeley <swadeley at redhat.com>
Date: Wed Sep 3 21:54:04 2014 +0200
Replace ifconfig with "ip link show"
>---------------------------------------------------------------
en-US/Configure_Network_Bonding.xml | 28 ++++++++++------------------
1 files changed, 10 insertions(+), 18 deletions(-)
diff --git a/en-US/Configure_Network_Bonding.xml b/en-US/Configure_Network_Bonding.xml
index 656980e..c5c3fed 100644
--- a/en-US/Configure_Network_Bonding.xml
+++ b/en-US/Configure_Network_Bonding.xml
@@ -506,24 +506,16 @@ Then when complete, bring up all the slaves, which will bring up the bond (provi
class="option">MASTER=bond0</parameter> directives in the configuration files for each interface bonded to bond0. Once this is completed, you can proceed to testing the parameters.</para>
<para>First, bring up the bond you created by running <command>/usr/sbin/ifup <option>bond<replaceable><N></replaceable></option></command> as <systemitem class="username">root</systemitem>:</para>
<screen>~]# <command>/usr/sbin/ifup bond0</command></screen>
- <para>If you have correctly created the <filename>ifcfg-bond0</filename> bonding interface file, you will be able to see <computeroutput>bond0</computeroutput> listed in the output of running <command>ifconfig</command> (without any options):</para>
- <screen>~]# <command>ifconfig</command>
-bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
- UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
-eth0 Link encap:Ethernet HWaddr 52:54:00:26:9E:F1
- inet addr:192.168.122.251 Bcast:192.168.122.255 Mask:255.255.255.0
- inet6 addr: fe80::5054:ff:fe26:9ef1/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:207 errors:0 dropped:0 overruns:0 frame:0
- TX packets:205 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:70374 (68.7 KiB) TX bytes:25298 (24.7 KiB)
-<lineannotation>[output truncated]</lineannotation>
- </screen>
+ <para>If you have correctly created the <filename>ifcfg-bond0</filename> bonding interface file, you will be able to see <computeroutput>bond0</computeroutput> listed in the output of running <command> ip link show</command> as <systemitem class="username">root</systemitem>:</para>
+ <screen>~]# <command>ip link show</command>
+1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
+ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
+2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
+ link/ether 52:54:00:e9:ce:d2 brd ff:ff:ff:ff:ff:ff
+3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
+ link/ether 52:54:00:38:a6:4c brd ff:ff:ff:ff:ff:ff
+4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT
+ link/ether 52:54:00:38:a6:4c brd ff:ff:ff:ff:ff:ff</screen>
<para>To view all existing bonds, even if they are not up, run:</para>
<screen>~]# <command>cat /sys/class/net/bonding_masters</command>
bond0</screen>
More information about the docs-commits
mailing list