Link to home
Start Free TrialLog in
Avatar of lundrog
lundrogFlag for United States of America

asked on

Port mirroring 2nd Nic, sles 10, running VMware Server.

I have a Cisco catalyst 2950 that I have setup with Port Mirroring, and I want to connect the port to my 2nd nic card on my SLES 10 server running VMware server.

How do I configure SUSE to pass the port Mirroring information to VMware server, so I can run a Ubuntu server vm guest with Snort and monitor that port.
Avatar of palekar
palekar

Hi,
  As I get it, you have a host server as SLES 10 and you wish to have Ubuntu  Virtual Machine with SNort running.

 You have solution depending on what networking you use for the virtual machine.

(1) If you have used the "Bridged Connection", then you already have a IP from the router, which you can use for monitoring

(2) If you have used "Nat Connection".. you can use the nat config that is shipped with vmware.. to do the port forwarding. Here is a example: http://www.howtogeek.com/howto/vmware/allow-access-to-a-vmware-virtual-machinenat-from-another-computer/

(3) If you use host-only networking.. you will have to put the port forwarding using iptables or firewall on your host.

As far as the second NIC is concerned.. you have to choose the second nic for networking on your vmware network settings.

More info regarding your setup and ports.. will be required to give you a detailed solution
Avatar of lundrog

ASKER

I have Bridged networking setup, and the Ubuntu Snort Guest VM will have it's own IP Address.
So i just plug the RJ45 in to the 2nd nic, which is connected to the port 23 on the switch,  which is mirroring port 22 on switch, and I do nothing in SUSE to configure it?

Do i have to use any switches / configuration in my VM Guest ( Ubuntu) config file to setup it to see the port mirrored port?

For snort (VMware Guest, Ubuntu)  to have a network address I would configure eth0 in ( VMware Guest, Ubuntu) to point to eth0 in SUSE ( VMware host) and for Snort, ( VMware Guest, Ubuntu) to Sniff, I configure eth1(VMware Guest, Ubuntu) to point to eth1 in SUSE ( VMware host), which would be the port mirroring port ?
Avatar of lundrog

ASKER

I had to do "ifconfig eth1 -promisc" then "ifconfig eth1" up on both the host system and the guest


You would have to do this for every boot.


Unless anyone knows how to do this automatically.


Thanks
Avatar of lundrog

ASKER

I got the answer I needed on this post

http://communities.vmware.com/message/978721

Up to you how you assign points.
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial