Hi Guy's
What I have done is that in my laptop I have Ubuntu 16.04 and I have installed virtual box in it.
In virtual box I have installed Windows 7, Now what I am trying to do is that I have a cisco switch attached with my laptop.
IP Address on switch is 192.168.8.100 255.255.255.0
Now I went into windows IP settings and changed it to 192.168.8.200 255.255.255.0
I than tried to ping that switch that is physically connected with my laptop from guest windows 7 that is installed in virtual box, but in ping reply it is saying that destination host is not reachable.
I am not able to ping switch physically connected with my laptop from Windows Os installed in virtual box
Please help me I am new to virtual box I don't know where I am lacking.
How to ping switch attacted to my laptop from Windows 7 installed in virtual box
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to ping switch attacted to my laptop from Windows 7 installed in virtual box
Is this a smart switch? Is the host ( not the guest ) in the same subnet and the switch and can it ping the switch?
Re: How to ping switch attacted to my laptop from Windows 7 installed in virtual box
Yes host is able to ping that switch but guest is not able to both host and guest ip addresses are in same subnet as of switch also the switch is Cisco 2960.By smart you mean manageable or what ...???
-
- Volunteer
- Posts: 2560
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Win10, Linux, OS/2
Re: How to ping switch attacted to my laptop from Windows 7 installed in virtual box
Did you set your VM to use brigded networking? Otherwise it would not be "in the same network".
Re: How to ping switch attacted to my laptop from Windows 7 installed in virtual box
No I haven't done that, moreover my if config output shows that mt ethernet adaper does not have any ip address
Code: Select all
parvinder@admin-Office:~$ ifconfig
enp7s0 Link encap:Ethernet HWaddr 00:24:54:b4:0c:5b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1834 errors:0 dropped:0 overruns:0 frame:0
TX packets:1834 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:172645 (172.6 KB) TX bytes:172645 (172.6 KB)
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlp3s0 Link encap:Ethernet HWaddr 5c:ac:4c:19:9f:c6
inet addr:192.168.0.124 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::1c6d:eed3:f361:c69d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:62800 errors:0 dropped:1 overruns:0 frame:0
TX packets:29617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:85826722 (85.8 MB) TX bytes:2996271 (2.9 MB)
Re: How to ping switch attacted to my laptop from Windows 7 installed in virtual box
I think I messed up somewhere in configuration.