[pre]R1int lo 0ip add 1.1.1.1 255.255.255.0int s1/0no shutno ip adden frint s1/0.1 point-to-pointip add 12.12.12.1 255.255.255.0ip ospf net point-to-pointfra interface-dlci 102//对于点对点链路的子接口,在子接口上不需要做MAP映射,只定义本地DLCI即可int s1/0.2 point-to-pointip add 13.13.13.1 255.255.255.0ip ospf net point-to-pointfra interface-dlci 103router ospf 1.1.1.1net 1.1.1.1 255.255.255.0net 12.12.12.0 255.255.255.0 a 0net 13.13.13.0 255.255.255.0 a 0[/pre]
R2
R2其他的配置就不多赘述了,在R2和R3上基本相同,只需在接口上把OSPF网络类型改为point-to-point
ip ospf point-to-point
然后定义一个协议地址映射
fra map ip xxx.xxx.xxx.xxx dlci号
使用子接口这种办法,有一个毛病,就是划分子接口的时候会浪费一个子网。不过好象大家都是实验环境。 五、继续补充
PVC非全互连,支持广播
对于前面的内容,不多说了,只看一下对于PVC支持广播,且非全互连的第三种解决办法
我们干脆把它配成非广播类型—–不支持广播。但是非广播不能选DR,那么我们手工选举;非广播,那邻居关系,我们也是手工来指定。
[pre]R1int lo 0ip add 1.1.1.1 255.255.255.0int s1/0ip add 123.123.123.1 255.255.255.0en frno shutip ospf net non-broadcastfra map ip 123.123.123.2 102 brofra map ip 123.123.123.3 103 brorouter ospf 1.1.1.1net 1.1.1.1 255.255.255.0 a 0net 123.123.123.0 255.255.255.0 a 0neighbor 123.123.123.2neighbor 123.123.123.3[/pre]
[pre]R2int lo 0ip add 2.2.2.2 255.255.255.0int s1/0no shutenc frip add 123.123.123.2 255.255.255.0fr map ip 123.123.123.1 201 broip ospf net non-broadcastip ospf priority 0[/pre]
[pre]R3int lo 0ip add 3.3.3.3 255.255.255.0int s1/0no shutenc frip ad 123.123.123.3 255.255.255.0fr map ip 123.123.123.1 301 broip ospf net nonip ospf pri 0[/pre]