From 0492cadd23aa7258f0799b4d2e130705a66eaac0 Mon Sep 17 00:00:00 2001 From: Nikhil Sonti Date: Mon, 28 Dec 2015 19:49:50 +0530 Subject: [PATCH] ifconfig.md: Adding ifconfig command --- pages/common/ifconfig.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/ifconfig.md diff --git a/pages/common/ifconfig.md b/pages/common/ifconfig.md new file mode 100644 index 000000000..e4a0563f3 --- /dev/null +++ b/pages/common/ifconfig.md @@ -0,0 +1,23 @@ +# ifconfig + +> ifconfig - Interface Configurator, used to configure network interfaces. + +- View network settings of an ethernet adapter. + +`ifconfig eth0` + +- Display details of all interfaces, including disabled interfaces. + +`ifconfig -a` + +- Disable eth0 interface. + +`ifconfig eth0 down` + +- Enable eth0 interface. + +`ifconfig eth0 up` + +- Assign IP address to eth0 interface. + +`ifconfig eth0 {{ip_address}}`