Hi Bro
Yes, these lines are fine;
monitor seession 1 source inter gig1/1 both
monitor session 2 destination int gig1/2
You don’t need to configure the interface g1/2 to be in the same VLAN as g1/1, but if you wanna still do it, that’s fine too. I would do it, if I were you.
I believe the reason you’re asking this question is because you don’t see any traffic in your Cisco IPS appliance (running in IDS/promiscuous mode). Just ensure, that the port in the Cisco IPS appliance that’s connected to g1/2 is assigned a Virtual Sensor. This Virtual Sensor should be tagged with a signature definition, an event action rule and anomaly detection.
P/S: if you think this comment is useful, please do rate them nicely :-)
Warm regards,
Ramraj Sivagnanam Sivajanam