Gentoo Archives: gentoo-user

From: Strong Cypher <cypherstrong@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] network configuration problem
Date: Mon, 01 Jan 2007 11:08:09
Message-Id: 5251dbe30701010303q57e2b323q7576c7d0a4286380@mail.gmail.com
In Reply to: Re: [gentoo-user] network configuration problem by Chuanwen Wu
1 did you configure manually your ip for testing before starting net.eth0 ???
2 in this case, try
3
4 ifconfig eth0 down
5
6 and /etc/init.d/net.eth0
7
8 if work fine, just add it to default profile
9
10 rc-update add net.eth0 default
11
12 just an explanation:
13
14 ifconfig do up on network card, so net.eth0 try up too and fail cause
15 already up
16 they don't try down before up ... so
17
18 if you configure manually by typing command
19 ifconfig eth0 MYIP netmask MYNETMASK brd MYBRD
20 route add default gw MYGW
21
22 so .. eth0 is up and net.eth0 couldn't do up again
23 so ifconfig eth0 down shutdown the network card, and so all work fine after
24 :)
25
26 have fun
27
28 2006/12/30, Chuanwen Wu <wcw8410@×××××.com>:
29 >
30 > 2006/12/30, Dan <dan@×××××××××.cx>:
31 > > On Fri, 29 Dec 2006 09:27:46 +0800
32 > > "Chuanwen Wu" <wcw8410@×××××.com> wrote:
33 > >
34 > > > 2006/12/28, Oliver Schmidt <oli@×××××××××××.ch>:
35 > > > > Hello Chuanwen
36 > >
37 > > > But everytime I do
38 > > > #/etc/init.d/net.eth0 start or
39 > > > #/etc/init.d/sshd start
40 > > > the error is still all the same : MYIP already taken on eth0.
41 > > > How can I fix the problem,now?
42 > >
43 > > assuming you were just doing that or have by now, mind
44 > > sending /etc/conf.d/net ?
45 > I have sent my /etc/conf.d/net in my first email.Just as below:
46 >
47 > # cat /etc/conf.d/net
48 > config_eth0=( "202.114.26.194 netmask 255.255.255.0 brd 202.114.26.255" )
49 > routes_eth0=( "default gw 202.114.26.193" )
50 >
51 > After
52 > #ifconfig eth0 MYIP
53 > #route add default gw MYGW
54 >
55 > I can connect the internet now,just like ping www.google.com.
56 > But as I said ,every time I do
57 > #/etc/init.d/net.eth0 start
58 > the error appear: MYIP already taken on eth0.
59 >
60 > And I also can't start sshd and ftp because they need to start net.eth0...
61 > > --
62 > > gentoo-user@g.o mailing list
63 > >
64 > >
65 >
66 >
67 > --
68 > wcw
69 > --
70 > gentoo-user@g.o mailing list
71 >
72 >

Replies

Subject Author
Re: [gentoo-user] network configuration problem Chuanwen Wu <wcw8410@×××××.com>