Hello Abbas,
on the L2 trunk between the two switches you can use one vlan for routing
example:
if the L2 trunk carries vlans 10,20,30,40 you can add a vlan 100 to be used for routing purposes
you need to create the L2 vlan 100, to add it to permitted vlans on the trunk on both sides, to configure on each switch the associated L3 interface SVI interface vlan 100
vlan 100
name p-t-p routing DL-6513
exit
int Vlan100
ip address 10.10.100.1 255.255.255.252
! important
no shutdown
ip route 172.16.1.0 255.255.255.0 10.10.100.2
! this can be necessary if you are allowing only specific vlans on LII trunk:
interface gx/y
desc LII trunk
switchport trunk allowed vlan add 100
on other switch
! note you may need to create the vlan also in this switch depending on VTP use in your environment
! you may need to add vlan 100 to allowed vlan list as decribed above.
int Vlan100
ip address 10.10.100.2 255.255.255.252
! important
no shutdown
ip route 0.0.0.0 0.0.0.0 10.10.100.1
! or less specific static route(s) as needed
Hope to help
Giuseppe