From what I understand, the modem has the internal IP is 192.168.1.1 .. If that is correct, then this is pretty simple on the router ..
from the CLI, apply the following and it should work with you ...
conf t
int FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
speed 100
duplex full
exit
ip route 0.0.0.0 0.0.0.0 192.168.1.1
Let me explain the commands ...
conf t
This allows you to access the route configuration mode.
int FastEthernet0/0
This enters the interface configuration mode, in this case the interface is FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
This adds a static IP Address of 192.168.1.2
to the interface FastEthernet0/0
to be in the same subnet of the modem (192.168.1.0/24
)
speed 100
This enabled the interface to use the speed 100 MB
duplex full
This enables the interface to use full duplex
ip route 0.0.0.0 0.0.0.0 192.168.1.1
This adds a default route which informs the router to send all traffic that is not found in the routing table to the modem 192.168.1.1
But this scenario won't work, because the 192.168.1.0/24 is a private range and doesn't propagate over the internet .. The best thing is to change the modem mode to bridge
this allows the router to have an IP in the same subnet of the ISP which allows you to have internet access ...