# 静态路由实验

#### R1

```bash
R1#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#
R1(config)#interface f0/0         
R1(config-if)#
R1(config-if)#no shutdown 
R1(config-if)#
*Jun 30 08:47:46.799: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
R1(config-if)#
R1(config-if)#
*Jun 30 08:47:47.799: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#
R1(config-if)#exit
R1(config)#exit
R1#

```

#### R2

```bash
R2#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#
R2(config)#interface f0/0
R2(config-if)#
R2(config-if)#no shutdown 
*Jun 30 08:49:48.723: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Jun 30 08:49:49.723: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#
R2(config-if)#exit
R2(config)#exit
R2#

```
