Hello,
You can configure the 3900 normally i.e.
interface gi 0/0
ip address "address" "mask"
no shut
exit
and configure the switch port as an access port:
int gi 4/1
Switchport access vlan "vlan id"
no shut
exit
In the above configuration, the 3900 will be part of a specific vlan. If you
want to configure the router to be part of multiple vlans, then:
interface gi 0/0
no shut
exit
int gi 0/0.1
encapsulation dot1q 1 native
ip address "address" "mask"
exit
int gi 0/0.2
encapsulation dot1q 2
ip address "address" "mask"
exit
int gi 0/0.3
encapsulation dot1q 3
ip address "address" "mask"
exit
On the switch side:
int gi 4/1
Switchport trunk encapsulation dot1q
Switchport trunk native vlan 1
Switchport mode trunk
exit
In both cases, you can ping the IP of the 4500 from 3900 and vice versa to
check the connectivity.
Hope this helps.
Regards,
NT