LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2004, 02:30 PM   #1
littlemidget
Member
 
Registered: Aug 2004
Location: Oslo, Norway.
Distribution: Debian Sarge
Posts: 171

Rep: Reputation: 30
need help with /etc/network/interfaces


I have eth0 and eth1. eth0 is cable, and eth1 is my wlan.

eth1 is the problem here. I've read the manpages for interfaces, and i've tried google, but i still can't find anything that solves my problem. I want eth1 to start up during boot (if a cable (eth0) isn't connected).

This is what i have in /etc/network/interfaces for eth1:

--

iface inet eth1 dhcp
ifdown eth0
route del default gw
ifup eth1
key <my key>
route add default gw <my gw>

--

I took this from a script a friend wrote for me earlier, now i just want to set everything up myself - but i can't figure out how to do it right.

Anyone?
 
Old 08-04-2004, 07:00 PM   #2
littlemidget
Member
 
Registered: Aug 2004
Location: Oslo, Norway.
Distribution: Debian Sarge
Posts: 171

Original Poster
Rep: Reputation: 30
I got it eventually :-)

--

# eth1 = wlan interface
auto eth1
iface eth1 inet static
address <ip>
netmask <netmask>
gateway <gateway>
up iwconfig eth1 essid <essid>
up iwconfig eth1 key <key>

--
 
  


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
/etc/network/interfaces angel115 Linux - Networking 1 10-23-2005 04:29 AM
Two Interfaces on the same Network cspcom Linux - Newbie 6 06-18-2005 04:32 PM
Network Interfaces aussben Linux - Wireless Networking 3 12-18-2004 02:35 AM
2 network interfaces with IpCop Lonix Linux - Hardware 0 05-12-2004 09:16 PM
Virtual Network Interfaces pickledbeans Linux - Networking 1 07-11-2002 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration