LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2009, 12:03 PM   #1
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
creating a fake network interface!! help


Hi guys...i have a weird issue here.. our oracle team needs some linux machine for an oracle RAC , but itīs a fake oracle rac only for development/test purposes , as some of you might know oracle rac uses a dedicated interface for interconnect , as our RAC is a 'fake' one...it will be single...just one machine , and this interface has a configured ip but connects to no where....it has no cable , the problem is:

when the rac tries to up the database..it will check if there is conectivity at eth3 interface , as there is no cable , the database wont go up because of this. i dont want to pass a cable to connect no where.....what i was thinking is : is there a method to create a fake interface with link up? like the loopback interface? but it must be called eth3 ...

thanks for any help
 
Old 01-28-2009, 01:22 PM   #2
cheftec
Member
 
Registered: Jan 2009
Location: Pennsyltucky
Distribution: Debian, Ubuntu, DeLiLinux, others
Posts: 144

Rep: Reputation: 19
try this:

add to /etc/hosts
falseNetwork 192.168.99.99 (or something similar)

then
ifconfig eth3 falseNetwork
route add 192.168.99.99

then

ping falseNetwork

to see if it works. I don't know if this is what you need since I'm not familiar with Oracle RAC...


By the way, the admins frown on double posting in different categories... I think you're in the right category here.

Last edited by cheftec; 01-28-2009 at 01:24 PM.
 
Old 01-28-2009, 03:03 PM   #3
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
Can you use an existing interface (I suppose the machine have at least one) and add an alias to it? In that way you will have IP address and the link will be up.
You want exactly the name "eth3"? There is a file /etc/udev/rules.d/75-network-devices.rules where you can set a specific names per lan card based on its mac address.
 
Old 01-28-2009, 08:10 PM   #4
ne pas
Member
 
Registered: Jul 2008
Posts: 55

Rep: Reputation: 23
Quote:
Originally Posted by mtsm View Post
when the rac tries to up the database..it will check if there is conectivity at eth3 interface , as there is no cable , the database wont go up because of this. i dont want to pass a cable to connect no where.....what i was thinking is : is there a method to create a fake interface with link up? like the loopback interface? but it must be called eth3 ...

thanks for any help
Yeah, you can create a "fake" or better dummy interface, by default it's called "dummy0" or "dummy" but you can change it with the ip tool.
Code:
$ ip link set name eth3 dev dummy0
 
Old 01-28-2009, 09:21 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Glad you found an answer, but please don't open multiple threads for the same problem. If you open an thread and feel it should be somewhere else, it's best to click the report button and ask that your thread be moved.
 
Old 02-01-2009, 02:29 PM   #6
mtsm
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
hi guys...thank you for the answer...iīve just read the post but i found a way myself , just created a standalone bridge interface with brctl , added to /network-scripts/ with TYPE=Bridge , worked perfectly.

thanks
 
  


Reply



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
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM
network interface (BCM4401-B0) hangs on hight network load indig0kid Linux - Hardware 0 03-09-2007 09:49 AM
Creating new network interface jrtayloriv Linux - Networking 5 12-11-2006 11:10 PM
Creating Wireless Interface vfronda Linux - Newbie 1 12-03-2006 09:50 PM
Creating custom interface builder Millenniumman Programming 2 07-20-2006 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration