LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-17-2007, 06:52 PM   #1
zmanods
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
Network-Scripts question


I create a new file /etc/sysconfig/network-scripts/ifcfg-eth1 as follows:
ONBOOT=no
USERCTL=yes
PEERDNS=no
TYPE=Wireless
DEVICE=eth1
#HWADDR=xx:xx:xx:xx:xx:xx
BOOTPROTO=dhcp
#ESSID=xxxxxxx
#KEY='xxxxxxxxxxxxxxxxxxxxxxxxxx restricted'
MODE=Managed
RATE=Auto
PEERNTP=no

Question
I need to know how to find out the values for HWADDR, ESSID, KEY.

Explain like you would to a kid please

Thanks in advance.
 
Old 02-17-2007, 07:04 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The HWaddress is the MAC address of eth1. You can get that info from the first line of /sbin/ifconfig eth1.

The ESSID and KEY values are for the wireless network. Connect to your routers setup via a wired connection or another host and get it from the wireless status. For example, for a linksys router, http://192.168.1.1 ( it may use the https:// protocol instead and you may have changed the IP address from 192.168.1.1 ).

Consider using wpa_psk.

Last edited by jschiwal; 02-17-2007 at 08:24 PM.
 
Old 02-17-2007, 07:22 PM   #3
zmanods
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
When i try to vi that file i see complete garbled text.
 
Old 02-17-2007, 07:54 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
HWaddress is not really needed. I leave mine else because I have multiple cards that can use that interface.

If not using WEP then the KEY is not needed. The value here is the same you entered in your router if using WEP.

ESSID is the name of the network on the router. If no other wireless networks around you then this is not needed.

Brian
 
Old 02-17-2007, 08:26 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Run the command "sudo /sbin/ifconfig eth1". The hardware address is on the first line of output.
Code:
sudo /sbin/ifconfig wlan0
root's password:
wlan0     Link encap:Ethernet  HWaddr 00:90:4B:92:71:A1
 
Old 02-17-2007, 08:36 PM   #6
zmanods
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
$sudo /sbin/ifconfig wlan0
wlan0: error fetching interface information: Device not found

crap.
 
Old 02-20-2007, 04:21 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use eth1 instead of wlan0. I demonstrated the command on my system as an example.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gateway setting ./network-scripts/ifcfg-eth1 and ./network joshfields Linux - Networking 1 04-29-2012 05:27 AM
linking question for network-scripts DotHQ Linux - General 3 12-13-2006 01:43 PM
network-scripts albean Linux - Wireless Networking 1 12-29-2004 09:38 PM
How to do network installation with scripts? subaruwrx Linux - Networking 4 11-16-2004 04:35 PM
Lost Network Scripts JimKyle Linux - Networking 1 02-26-2002 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration