3750 will be doing inter-vlan routing. config will look like this on 3750.
ip routing
interface vlan 2
ip address 192.168.1.1 255.255.255.0
no shut
interface vlan 3
ip address 192.168.2.1 255.255.255.0
no shut
I have assumed that VLAN 2 will belong to 192.168.1.0/24 and VLAN will belong to 192.168.2.0/24 subnet. You can configure IPs on VLAN 2 & 3 interface as per your addressing scheme.
Once this is done follow below:
1. assign ports on 2950 switch to become member of VLAN 2 and VLAN 3 like this.
interface fa0/1
switchport mode access
switchport access vlan 2
spanning-tree portfast
interface fa0/2
switchport mode access
switchport access vlan 3
spanning-tree portfast
2. PCs in VLAN 2 will be configured with 192.168.1.1 and PCs in VLAn 3 will be configured with 192.168.2.1 as gateway.
subnet mask will be 255.255.255.0
3. make sure port connecting 2950 and 3750 has to be configured as trunk port like this:
2950
----
interface gi0/1
switchport mode trunk
3750
----
interface gi0/1
switchport mode trunk
switchport trunk encap dot1q
4. Make sure 2950 and 3750 have VLAN 2 and VLAN 3 in their VLAN database. verify it using "show vlan" command.
5. After this try to ping between PCs which are e in different subnets.
if you are facing some specific problem, let us know.
HTH, rate if it does ...