Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
get eth interface to be always in RUNNING status
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
STreen
n00b
n00b


Joined: 06 Jun 2006
Posts: 70

PostPosted: Thu Dec 15, 2011 12:28 pm    Post subject: get eth interface to be always in RUNNING status Reply with quote

Hi,

one of my eth interfaces is set up correctly and has status UP.
But only with a cable plugged in and a live machine on the other end it gets the status RUNNING as well.

Is there a way to set the status to RUNNING without plugging anything into that interface ?
Maybe disabling hotplugging for the device or something so that it is always treated as running ?

Thanks, S.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Dec 15, 2011 3:35 pm    Post subject: Reply with quote

Why do you want to do that?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Thu Dec 15, 2011 3:54 pm    Post subject: Reply with quote

use a ethernet loopback jack?

OTOH, I am curious to the answer to audiodefs questions...

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
STreen
n00b
n00b


Joined: 06 Jun 2006
Posts: 70

PostPosted: Thu Dec 15, 2011 5:04 pm    Post subject: Reply with quote

To be able to connect a virtual machine to this interface without plugging a live physical machine into it as well.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Dec 15, 2011 5:36 pm    Post subject: Reply with quote

Wouldn't that be handled by the VM's drivers?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
STreen
n00b
n00b


Joined: 06 Jun 2006
Posts: 70

PostPosted: Thu Dec 15, 2011 5:54 pm    Post subject: Reply with quote

It's VirtualBox I'm using and there I want to use the option for a bridged network adapter. I thought this was emulating a physical cable being plugged into the corresponding host interface but it doesn't as it doesn't effect the interface's running status. Someone over at #vbox told me that virtualbox cannot change this OS behaviour. Before I heard that, my gut feeling had been that it could do just that.
But anyways, I was looking for an easy way around this, where I can physically plug in my 2nd physical machine into the same host interface that the VM connects to as well. And if I don't need my 2nd computer to talk to the VM I can just leave it off and still have the VM talk to its host.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23100

PostPosted: Fri Dec 16, 2011 11:05 pm    Post subject: Reply with quote

Create a bridge device. Add your Ethernet port to the bridge. Add your VirtualBox port to the bridge. Leave your Ethernet port otherwise unconfigured. Configure the IP address and routing on the bridge device.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum