nic card connection to switch trunk port

yamahahornist

Distinguished
Feb 1, 2012
317
0
18,810
Well you need to give more information on this?? A trunk port on a switch just means it can do vlans. Are you trying to connect the computer and put it on a different vlan then 1? If you install the NIC into your computer (or whatever it is) it should be able to just plug it in and go; unless the port you are trying to plug into is setup with a vlan that doesn't connect to a WAN connection (outside world internet).

Just need more information here
 

jaipak

Prominent
Oct 7, 2017
8
0
510
my question is
how to connect nic card on pc to trunk port on switch , so that i can perform traffic monitoring in my department but when i connect the trunk port and nic card, internet connection is not established ,port mirroring also doesn't on my depart switches, any solution
 

yamahahornist

Distinguished
Feb 1, 2012
317
0
18,810


Are you the IT Admin on site? Or did you set up the switch?? Because your dealing with something that is probably finely tuned. With a trunk port switch you need to know your networks vlans.

So at my business I am the IT Admin and I set up our network. I have a fiber optic modem that goes into a firewall that does DHCP and anti-virus and vlans; then I have a switch that in charge of pushing out connections (wired, some wireless access points) but also VLANS. So on my network I have 3 VLANS; they are vlan 1, which is all the main network traffic, like browsing the web or connecting to a server. I have Vlan 20 which our HDMI to IP video sources travel through. Then I have VLAN 40 which our wireless guest network connects to. The point of this is so that traffic on vlans don't touch each other. With a trunk port it can be configured to run as many or as little vlans as you want. So for example on my network if I configure port switch 5 with ONLY vlan 20, if I connect a laptop into that port I will not have internet connection; I will be "connected" to the local lan on vlan 20, but I will only be able to see the video devices nothing else.

My thoughts are you are trying to connect into a switch where you don't know how the ports are set up; with trunks its not as simple as just plug in and go. I would contact your network Admin or whoever set this thing up.

If you are running vlans the port you are trying to connect to may not let you into what you want. You would have to know the network build and add the vlans to whatever port your trying to connect to.
 
You can set a vlan tag in the nic settings. Not sure if you can set multiple tags it seams to vary depending on the version of windows you have.

To actual capture the tag itself tends to be very tricky. First the switch must actually mirror the tag value some strip them off. Then the OS on the machine must not strip them off also. A lot of the hardware offload features remove things like this. Last time I tried this I ended up using a linux install because I could not make it work on windows 7 but things may have changed.
 
At my work we have a computer that monitors. It is windows 7. It has 2 NIC's in it. One nic is plugged in just like normal and is what the computer communicates with. The other nic is set to Promiscuous mode and is connected to a port that mirrors a trunk port on the switch.
 

jaipak

Prominent
Oct 7, 2017
8
0
510
but problem is port mirroring is not working in switches , is there way than port mirroring ,
i have also two lan card , one simple built in and other lan card of 1000gigabits that i installed.
can this network will work if i connect the main internet connection to hub than to pc 1000 gigabit lan card , than connect the pc simple lan card to trunk port of switch