Page 1 of 1
PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 06:13
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
is not showing me the ip address of the pcmcia adapter and the MAC address which
shows on the host
please any suggestions
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 12:54
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.
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 13:37
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
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 13:43
by Sasquatch
And your network setup at the moment? Please give more information.
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 15:00
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
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 15:29
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.
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 16:06
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
Re: PCMCIA and ethernet ip forward
Posted: 27. Feb 2011, 20:16
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.
Re: PCMCIA and ethernet ip forward
Posted: 28. Feb 2011, 12:39
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?
Re: PCMCIA and ethernet ip forward
Posted: 1. Mar 2011, 11:56
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
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