Linuxmce Hacks and Tips

Add intelligence to your home!

Hack #5: Howto Modify network configuration

with 2 comments

LinuxMCE Core (hybrid or dedicated) needs two network interfaces – one for external connection and another one – for internal. If by some reason you have only one during installation the system creates a virtual internal interface – eth0:0. To modify the network configuration when you decided to add a second Ethernet card you have to make simple changes in the pluto_main database. To see a current network configuration run following select command in the mysql shell:

SELECT IK_DeviceData FROM Device_DeviceData WHERE FK_DeviceData=32;

The result should be similar to this:

eth0,dhcp|eth0:0,192.168.80.1,255.255.255.0

Just replace eth0:0 to eth1

UPDATE Device_DeviceData SET IK_DeviceData="eth0,dhcp|eth1,192.168.80.1,255.255.255.0" WHERE FK_DeviceData=32;

and reboot your core. After that will should see two interfaces.

Advertisements

Written by nite_man

October 3, 2007 at 7:46 am

2 Responses

Subscribe to comments with RSS.

  1. Do NOT go poking around in the database manually, that is what the web-admin is for!

    Web Admin: Show devices tree/My Devices/CORE > Device data/Network Interfaces

    Zaerc

    February 11, 2009 at 11:29 am

  2. You’re right, Zaerc. I didn’t know about it when posted that hack 😉

    nite_man

    February 11, 2009 at 2:39 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: