You are not logged in.

#1 2012-10-26 16:07:10

Phate666
Member
Registered: 2009-02-06
Posts: 10

How to convert wired network config from /etc/rc.conf to netcfg?

Hi,

I am trying to migrate my wired network configuration from /etc/rc.conf to a netcfg profile.

from /etc/rc.conf

interface=eth0
address=192.168.0.1
netmask=255.255.255.0
gateway=192.168.2.1

/etc/network.d/wired

CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth0'
IP='static'
ADDR='192.168.0.1'
GATEWAY='192.168.2.1'
DNS=('192.168.2.1')
NETMASK='255.255.255.0'

The problem is, it does not work: executing "netcfg wired" only gives

:: wired up                 [BUSY] 
> No connection        [FAIL]

EDIT:
NETCFG_DEBUG="yes" netcfg wired

DEBUG: Loading profile wired
DEBUG: Configuring interface eth0
:: wired up                                                                                                                                                                                             [BUSY]
DEBUG: status reported to profile_up as:
DEBUG: Loading profile wired
DEBUG: Configuring interface eth0
DEBUG: ethernet_up bring_interface up eth0
> No connection
DEBUG: profile_up connect failed
                                                                                                                                                                                                        [FAIL]


Any idea how to make it work?

Last edited by Phate666 (2012-10-26 16:09:36)

Offline

#2 2012-10-26 16:14:36

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to convert wired network config from /etc/rc.conf to netcfg?

Your interface's ip address and the gateway address are in different subnets, so neither of the above configs should work. Recheck your rc.conf original.

Offline

#3 2012-10-26 16:32:49

Phate666
Member
Registered: 2009-02-06
Posts: 10

Re: How to convert wired network config from /etc/rc.conf to netcfg?

The rc.conf is correct because there are two diffrent subnets.
My PS3 is connected to my computer via ethernet.
The computer is connected via wifi to the router (ip 192.168.2.1).

When using /etc/rc.d/network to start ethernet everything works perfect, the PS3 can stream video from the computer and access internet.

Last edited by Phate666 (2012-10-26 16:34:47)

Offline

#4 2012-10-26 17:17:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to convert wired network config from /etc/rc.conf to netcfg?

If you want help, provide all relevant details. Your first post mentions eth0 only,

Offline

#5 2012-10-26 19:29:44

sidh
Member
Registered: 2011-11-10
Posts: 6

Re: How to convert wired network config from /etc/rc.conf to netcfg?

As was say above see NETMASK. It must be 255.255.0.0, not 255.255.255.0 ! Try it.

Offline

Board footer

Powered by FluxBB