Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ifconfig(8) [minix man page]

IFCONFIG(8)						      System Manager's Manual						       IFCONFIG(8)

ifconfig - configure a TCP/IP device SYNOPSIS
ifconfig [-I ip-device] [-h ipaddr] [-n netmask] [-iv] DESCRIPTION
Ifconfig initializes a TCP/IP device setting the IP address and/or netmask. It will report the address and netmask set. This command may be used if the system has not been configured properly yet. It is only used at boot time to set a fixed address for a system without a physical ethernet. Normally the inet task will find it out by itself from the RARP server. OPTIONS
-h The decimal TCP/IP address to set. -n The netmask to set. -i Don't set the IP address or netmask if already set. This way ifconfig cannot interfere if the numbers have been found out by RARP. -v Report IP address and netmask. This is the default action if there are no other options. SEE ALSO
hostaddr(1), rarpd(8), set_net_default(8), boot(8). AUTHOR
Kees J. Bot ( IFCONFIG(8)

Check Out this Related Man Page

IFCONFIG(1)							   User Commands						       IFCONFIG(1)

ifconfig - configure network interfaces SYNOPSIS
NAME [ADDR] [broadcast BRDADDR] [pointopoint|dstaddr DSTADDR] [netmask MASK] [metric N] [mtu N] [txqueuelen N] [up|down] [FLAGS] Configure network interfaces. -a, --all display all available interfaces -A, --address=ADDR set interface address to ADDR -B, -b, --broadcast=ADDR, --brdaddr=ADDR set broadcast address to ADDR -d, -p, --dstaddr=ADDR, --peer=ADDR set destination (peer) address to ADDR --down shut the interface down --format=FORMAT select output format (or set back to default) -F, --flags=FLAG[,FLAG...] set interface flags -i, --interface=NAME configure network interface NAME -m, --netmask=MASK set netmask to MASK --metric=N set metric of interface to N -M, --mtu=N set mtu of interface to N -s, --short short output format --up activate the interface (default if address is given) -v, --verbose output information when configuring interface Linux-specific options -T, --txqlen=N set transmit queue length to N -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. Known flags are: allmulti, automedia, debug, loopback, multicast, portsel, running, trailers, up AUTHOR
Written by Marcus Brinkmann. REPORTING BUGS
Report bugs to <>. COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for ifconfig is maintained as a Texinfo manual. If the info and ifconfig programs are properly installed at your site, the command info ifconfig should give you access to the complete manual. GNU inetutils 1.9 December 2011 IFCONFIG(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Network Ip

Hello again. Neo, thanks for your last reply. I have a new question. How can I re-configure the host name and IP address information attached to my NIC? I remember seeing a command posted here that would cause the system to re-boot and require the information to be entered but I do not see it... (6 Replies)
Discussion started by: jdevarie
6 Replies

2. IP Networking

configuring more than one ip for an inteface pemanently (linux)

Hi does anybody know how we can add more than one ip for NIC(in Redhat Linux 7.2)? i usually do it by using this command ifconfig eth0 add <ip addresss> netmask <..............> up or ; ip address add dev eth0 or adding it manually to file in... (12 Replies)
Discussion started by: hessam
12 Replies

3. UNIX for Dummies Questions & Answers

Command for showing IP Address

Hi everyone, nice forum! I need to know if there's a command that will show the IP Address of the machine you are logged into. Eg when you type hostname it returns the name of the machine, I need one that returns the IP address only. Can anyone help or suggest commands that are almost what I... (7 Replies)
Discussion started by: danhodges99
7 Replies

4. UNIX for Dummies Questions & Answers

New ip setting

I want to change the IPsetting and the broadcast setting. With ipconfig I get this: hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet xx.17x.18x.xx netmask fffffff0 broadcast xx.17x.18x.xx ether yy:0:yy:b6:yy:xx What command(squence) do I use to... (6 Replies)
Discussion started by: kuultak
6 Replies

5. UNIX for Dummies Questions & Answers

Configuring networking interfaces on Solaris 10

Hi, I am trying to configure an ip address, netmask, and default gateway on my solaris machine. For example, in Linux I would do the following command: #ifconfig eth0 xx.xx.xx.xx netmask #add route or route add default In Solaris 10, I believe the commands are... (7 Replies)
Discussion started by: annointed3
7 Replies

6. IP Networking

Setting primary ip address with ifconfig

Hello, I have a server with two ip addresses. I need to make the ip address that's currently the secondary the primary. How do I use the ifconfig command and primary option? Thanks. (5 Replies)
Discussion started by: pmichner
5 Replies

7. Solaris

slow access

We had a network hiccup several weeks back and ever since access to my Ultra 10 Solaris machine has been very slow from within the network but very fast when access from outside the local network. Any ideas as to what can cause this? (15 Replies)
Discussion started by: Danno
15 Replies

8. Solaris

basic unix question

Hello, I'm new to solaris and have an experience with linux. When we see network interface I can see qfe, hme, le0. What is that mean? Is it depend on the network card? (11 Replies)
Discussion started by: mokkan
11 Replies

9. Shell Programming and Scripting

extracting the ip address from ifconfig

Hi I am trying to create a script extracting the IP provided by ifconfig. I tried with grep + awk but I am returned more than I need. /sbin/ifconfig eth0 | grep "inet addr:" | awk '/inet addr:/ { print $2 }' and returns addr: How can I remove "addr:" string?... (9 Replies)
Discussion started by: manustone
9 Replies

10. Shell Programming and Scripting

configure from address in mailx command

Hi, I need to configure customized from address in mailx command. Can you pls tell me the option for configuring from address. Thanks Latika (9 Replies)
Discussion started by: latika
9 Replies

11. Solaris

IFCONFIG is available... sort of

So, I have this script that makes a call to ifconfig to pull the interface information and report it. When I log on to the machine the script works just fine. But, if I'm on a remote machine and I make a call like this. ssh user@server ./script.bash I get an error saying that the IFCONFIG command... (9 Replies)
Discussion started by: Binary Buddha
9 Replies

12. Shell Programming and Scripting

issue with nawk while using variable assignment

#ifconfig -a | nawk '/{print}' inet netmask xxxxxxxxx broadcast If i assign the ip to a variable and search for the variable nothing gets printed!! # ifconfig -a | nawk -v ip= '/ip/{print}' I am not able to understand why this is happening! (6 Replies)
Discussion started by: chidori
6 Replies

13. Solaris

"Permission denied" when changing IP netmask

hello everyone, I am new on unix systems. I am working with a Solaris 10 OS. When i try to change netmask on certain interface: I get: How can i enable permission for changing that ? I have administrator privileges. Your help is much appreciated. thanks, (13 Replies)
Discussion started by: pablod76
13 Replies

14. Shell Programming and Scripting


Basically what I'm trying to do is pull the first three octets from the ipaddr out of ifconfig ifconfig eth0 |awk -F" " '{ print $2 }'|grep addr: |awk -F":" '{ print $2 }'| awk -F"." '{print $1"."$2"."$3}' keeps giving me 192.168.0 .. and I can not for the life of me get rid of the... (7 Replies)
Discussion started by: Lotheovian
7 Replies

15. What is on Your Mind?

Telegram Bots - Bot Code Examples

I'm currently looking into ways to integrate the Telegram API into the forums: Telegram Bots - Bot Code Examples I'm thinking, first off, to use the Telegram API to get forum alerts and notifications (to Bot or Not?). Second, I thinking of ways to more deeply integrate Telegram into the... (5 Replies)
Discussion started by: Neo
5 Replies