PCMCIA and ethernet ip forward

Discussions about using Linux guests in VirtualBox.
Post Reply
ankscorek
Posts: 6
Joined: 27. Feb 2011, 06:04
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.10

PCMCIA and ethernet ip forward

Post by ankscorek »

Hello

I am using win XP as host and ubuntu 9.10 as guest

i am running a PCMCIA card and a ethernet cable on win XP

i need both them on virtual box from where i can do an ip forward from one adapter to the other..

in brief i need to use the guest os as a router

can i please have a tutorial on attaching this as adapter

i tried to add pcmcia on bridged network it did get attached but then

Code: Select all

ifconfig
is not showing me the ip address of the pcmcia adapter and the MAC address which

Code: Select all

ipconfig -all
shows on the host

please any suggestions
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: PCMCIA and ethernet ip forward

Post by Sasquatch »

See the VirtualBox FAQ for the hardware part.

Network gives a different MAC address and type, so it will never be the same as the Host. It would be bad if it would. There are plenty of topics on this forum that describe what you want, so maybe searching for "vm as router site:forums.virtualbox.org" on Google will get your answer.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ankscorek
Posts: 6
Joined: 27. Feb 2011, 06:04
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.10

Re: PCMCIA and ethernet ip forward

Post by ankscorek »

yes that i had figured out as i was trying to resolv the issue....

but for some reasons the bridged adpater for PCMCIA is not responding...


its mainly i want to go in for a router using virtual box so that all data is routed via virtual box and not via the host os which is XP in my case
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: PCMCIA and ethernet ip forward

Post by Sasquatch »

And your network setup at the moment? Please give more information.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ankscorek
Posts: 6
Joined: 27. Feb 2011, 06:04
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.10

Re: PCMCIA and ethernet ip forward

Post by ankscorek »

router laptop has ethernet connection in the address range of 10.22.xx.xx subnet 255.255.0.0 and

pcmcia network card wireless supporting 802.16 with ip range of 192.168.xx.xxx subnet 255.255.0.0

i waant to make the 192 network talk to 10 network using virtual box as a router...no involvement of win XP
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: PCMCIA and ethernet ip forward

Post by Sasquatch »

If the PCMCIA card is wireless, then the Host MUST make the initial wifi connection. Only then can the Guest use the link. To avoid getting an IP on the Host, disable the TCP/IP protocol in the interface configuration on the Host. Then the Guest will have two interfaces in bridged mode, one for the wifi, one for the LAN, and route that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ankscorek
Posts: 6
Joined: 27. Feb 2011, 06:04
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.10

Re: PCMCIA and ethernet ip forward

Post by ankscorek »

the pcmcia card has its own dhcp server and is capable of supporting a mesh architecture....

the host has the driver enabled for the card and hence card works fine on the host

can someone please amplify
disable the TCP/IP protocol in the interface configuration on the Host
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: PCMCIA and ethernet ip forward

Post by Sasquatch »

Open Network Connections and get the properties of the interface. There you have a list of devices and protocols. The last in the line is TCP/IP. If you disable that, the Host will not obtain an IP address and thus not be able to use the network it's attached to.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ankscorek
Posts: 6
Joined: 27. Feb 2011, 06:04
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.10

Re: PCMCIA and ethernet ip forward

Post by ankscorek »

the pcmcia card and ethernet card are connected in a bridged mode to the virtualbox.....

i disabled the tcp/ip on the host in the case of pcmcia card..




in the guest pcmcia is not getting any ip address..whereas ethernet is getting some address but i am unable to access the internet from the guest ...the internet is connected via ethernet cable on the host.............

Code: Select all

/etc/init.d/networking restart
* Reconfiguring network interfaces...
Ignoring unknown interface eth5=eth5
SIOCADDRT: No such process
Failed to bring up eth4  
subsequently i managed eth4 and eth5 in bridged mode and i also enabled ip fwd =1

here is my routing table

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.22.0.0       *               255.255.0.0     U     0      0        0 eth5
link-local      *               255.255.0.0     U     1000   0        0 eth4
192.168.0.0     10.22.1.1       255.255.0.0     UG    0      0        0 eth5
192.168.0.0     192.168.5.34    255.255.0.0     UG    0      0        0 eth4
192.168.0.0     *               255.255.0.0     U     0      0        0 eth4
default         10.22.1.1       0.0.0.0         UG    100    0        0 eth5
the clients on 192 network still cant access internet..

they cant ping the static ip of the card

they can ping the inbuilt dhcp server ip of this card




eth4 is the card

Code: Select all

auto eth4
iface eth4 inet static
 address 192.168.0.1
 netmask 255.255.255.0
 gateway 10.22.6.171
gateway address is the address of the ethernet cable which is eth5 on virtual box
i shut down the machine and restarted it with ethernet cable in NAT mode and this time the virtual box parsed the interfaces file..

do i need to ip forward=1 now? for routing to happen?
ankscorek
Posts: 6
Joined: 27. Feb 2011, 06:04
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.10

Re: PCMCIA and ethernet ip forward

Post by ankscorek »

the present scenario is that i have 2 machines one virtual box and the other windows

the virtual box has 2 bridged adapters one is a cable and the other is a pcmcia card. pcmcia card is used to connect to the windows machine which is also having a pcmcia card..both cards have been given static ip addresses

these cards have inbuilt dhcp server with ip address

the windows machine is able to ping the virtual box dhcp server address inbuilt in the card but cannot ping the ip address..however when virtual box tries to ping windows dhcp ip address it returns destination unreachable

when i added a unicast entry in the routing table i got this error for the same ping from vb to windows

Code: Select all

connect: Network is unreachable
when i tried to bring my windows machine in the VB then also it was unable to ping the ip it was pinging earlier and also behaved in the same manner as the VB
please someone any suggestions
Post Reply