Sponsored Content
Full Discussion: how to get hwaddr?
Operating Systems Linux how to get hwaddr? Post 302174067 by HPAVC on Monday 10th of March 2008 12:26:59 AM
Old 03-10-2008
Quote:
Originally Posted by invinzin21
i lost my file ifcfg-eth1, i want ot configure it again.
but i do not know how to get my hwaddr,
suppose to be you can see it when you type ifconfig eth1,
but i did not configure my eth1. How to get it in some way?
in your /etc/network/interfaces you coulde
Code:
iface eth0 inet static
        address 192.168.0.1
        network 192.168.0.0
        netmask 255.255.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

quick and revert later
 
ESSIDSCAN(8)							     Commands							      ESSIDSCAN(8)

NAME
essidscan - scan for ESSID corresponding to available WLAN access points SYNOPSIS
In /etc/network/interfaces: mapping <interface> script essidscan DESCRIPTION
The essidscan utility is used to tell the ifup and ifdown utilities about the current SSID of the WLAN currently being accessed. It can be used to map the SSID name to an iface stanza. CONFIGURATION
A sample /etc/network/interfaces may look like this: mapping hotplug script /etc/network/essidscan map SSIDONE wlan-work map SSIDTWO wlan-work map HOME iface wlan-work inet dhcp wireless-key 1234-5678-9ABC-DEF0-1234-5678-9A wireless-keymode restricted iface HOME inet static address 192.168.2.4 netmask 255.255.255.0 gateway 192.168.2.1 wireless-essid HOME wireless-key s:somepassword wireless-keymode open iface DEFAULT inet dhcp FILES
/etc/network/interfaces the interfaces definition file /etc/network/run/ifstate a record of the current state of the interfaces, managed by ifup and ifdown SEE ALSO
interfaces(5) ifscheme(8) ifup(8) ifdown(8) AUTHORS
Tor Slettnes <tor@slett.net> ESSIDSCAN(8)
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy