We need more/better information if we are to give you good advice. What model device is this? What are port1 and port 2 and how are they configured? In fact it would be helpful to see the current complete running config. It would also be helpful to know whether this is to be done on real hardware or done on some emulator (and if so which emulator).
HTH
Rick