LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-27-2005, 07:06 AM   #1
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Rep: Reputation: 15
which file can i set "ifconfig eth0 up"?


Code:
mathsniper:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:04:75:B3:F8:EA
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:209 Base address:0xd800
mathsniper:~# ifconfig eth0 up
mathsniper:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:04:75:B3:F8:EA
          inet6 addr: fe80::204:75ff:feb3:f8ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:3 dropped:0 overruns:0 carrier:6
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:209 Base address:0xd800
after i type "ifconfig eth0 up" and then use command type "pon dsl-provider", it's work. um... where can i set "ifconfig eth0 up"?
 
Old 04-27-2005, 07:52 AM   #2
RomanG
Member
 
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110

Rep: Reputation: 15
Hello.
"/etc/sysconfig/network-scripts" contains some scripts you should look for
 
Old 04-27-2005, 10:28 AM   #3
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by RomanG
Hello.
"/etc/sysconfig/network-scripts" contains some scripts you should look for
I can't find this file, doesn't it exist?(login as root)
 
Old 04-27-2005, 10:37 AM   #4
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
I don't think he realizes he posted in the Debian forum..
Look into /etc/network/interfaces and read man interfaces
 
Old 04-27-2005, 10:58 AM   #5
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by zuralin
I don't think he realizes he posted in the Debian forum..
Look into /etc/network/interfaces and read man interfaces
I read /etc/network/interfaces but didn't know howto do with this file. (I am using sarge)
 
Old 04-27-2005, 12:45 PM   #6
zoredache
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
try checking out the example file...

zcat /usr/share/doc/ifupdown/examples/network-interfaces.gz | more

basically for a eth0 with dhcp you would need

auto eth0
iface eth0 inet dhcp

for a eth0 with a static addr you would need

auto eth0
iface eth0 inet static
address 192.168.0.42
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
 
Old 04-27-2005, 02:17 PM   #7
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
Quote:
Originally posted by Mathsniper
I read /etc/network/interfaces but didn't know howto do with this file. (I am using sarge)
Which is why I said to read: man interfaces

The man pages explain it better than anyone else can and are very useful.
 
  


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
Error: "cannot set groups" by using "su -", pls help nelsonyuen Linux - General 14 07-31-2010 12:24 PM
can't set leading "s" in file permission toddcurry Linux - General 2 10-19-2006 05:34 PM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 02:42 AM
tying "dhcpcd" into "ifconfig" up and down Riddick Linux - Software 8 09-10-2005 07:14 PM
How to authorize common-user to run "ifconfig eth0 up"??? cqmyg5 Slackware 2 04-03-2005 11:22 PM


All times are GMT -5. The time now is 02:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration