Sie sind auf Seite 1von 3

ifconfig Configure network interface parameters Syntax: ifconfig interface address_family [address [dest_address]] [parameters] ifconfig [-hLmvz] interface

[protocol_family] ifconfig -a [-bdhLmsuvz] [protocol_family] ifconfig -l [-b] [-d] [-u] [-s] ifconfig -s interface ifconfig -C -a Display information about all of the interfaces in the system. You can use the d, -u, -b, and -s options with this option to limit this display. -b List only the broadcast interfaces. -C List all of the interface cloners available on the system, with no additional in formation. This option is mutually exclusive with all other options and commands . -d List only the interfaces that are down. -h If you use this option in conjunction with -v, ifconfig prints the byte statisti cs are in human-readable format. -L Display the address lifetime for IPv6 addresses, as a time offset string. -l List all available interfaces on the system, with no additional information. Thi s option is mutually exclusive with all other options and commands, except for b, -d, -s, -u. -m Display all of the supported media for all of the interfaces in the system (used in conjunction with -a). If you specify the -m option before an interface name, ifconfig displays all of the supported media for the specified interface. -s If you specify the -a option, the -s option makes ifconfig list only the interfa ces that are connected. If you specify the -s option for a specific interface, ifconfig queries the inte rface for its media status. If the interface supports reporting media status, an d it reports that it doesn't appear to be connected to a network, ifconfig exits with status of 1 (false); otherwise, it exits with zero (true). Not all interfa ce drivers support media status reporting. -u List only the interfaces which are up. -v Print statistics on packets sent and received on the given interface. You can us e the -h in conjunction with -v to display the byte statistics in human-readable format. -z Similar to the -v flag, except that it zeros the interface's input and outpu t statistics after printing them.

=================================================== configure IP address on the LAN Interface To configure IP Address on the eth0 interface #ifconfig eth0 10.0.12.13 If you want to configure IP Address with Subnetmask use following COmmand #ifconfig eth0 10.0.12.50 netmask 255.255.248.0 To manually configure default gateway: #route add default gw 10.0.8.1 eth0 To Configure DNS servers IP Address: #echo nameserver 4.2.2.1 > /etc/resolv.conf #echo nameserver 4.2.2.2 >> /etc/resolv.conf Turn on the LAN Card #ifconfig eth0 up To see Full Information about LAN Card #ifconfig -a ================ 0. Write cmd in console to manage eth0 and wlan0 #kwlan 1. To View Available Network #ifconfig 2. To configure IP Address on the eth0 interface #ifconfig eth0 192.168.1.123 3. If you want to configure IP Address with Subnetmask use following C0mmand #ifconfig eth0 192.168.1.111 netmask 255.255.255.0 4. To manually configure default gateway: #route add default gw 192.168.1.1 eth0 5. To Configure DNS servers IP Address: #echo nameserver 208.67.222.222 >> /etc/resolv.conf 6. Turn on the LAN Card

#ifconfig eth0 up 7. To see Full Information about LAN Card #ifconfig -a ===============================================================================

Das könnte Ihnen auch gefallen