Dell PowerConnect 6248 Configuration Guide - Page 96

Example 1: Con Administrative Preferences

Page 96 highlights

Example 1: Configure Administrative Preferences The following commands configure the administrative preference for the RIP and OSPF: console#Config router rip distance rip 130 exit For OSPF, an additional parameter identifies the type of OSPF route that the preference value applies to: router ospf distance ospf ? external inter-area intra-area Enter preference value for OSPF external routes. Enter preference value for inter-area routes. Enter preference value for intra-area routes. distance ospf inter 170 exit Example 2: Assigning Administrative Preferences to Static Routes By default, static routes are assigned a preference value of 1. The following command changes this default: console#Config ip route distance 20 exit When you configure a static route, you can assign a preference value to it. The preference overrides the setting inherited as the default value for static routes. In this example, two static routes are defined to the same destination but with different next hops and different preferences (25 and 30). The route with the higher preference will only be used when the preferred route is unavailable: console#Config ip route 10.25.67.0 255.255.255.0 10.25.22.2 ip route 10.25.67.0 255.255.255.0 10.25.21.0 exit Similarly, you can create two default routes-one preferred and the other used as a backup. In this example, the preference values 1 and 10 are assigned: console#Config ip route default 10.25.67.2 1 ip route default 10.25.67.7 10 exit 96 Routing Configuration

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176

96
Routing Configuration
Example 1: Configure Administrative Preferences
The following commands configure the administrative preference for the RIP and OSPF:
console#Config
router rip
distance rip 130
exit
For OSPF, an additional parameter identifies the type of OSPF route that the preference value applies to:
router ospf
distance ospf ?
external
Enter preference value for OSPF external routes.
inter-area
Enter preference value for inter-area routes.
intra-area
Enter preference value for intra-area routes.
distance ospf inter 170
exit
Example 2: Assigning Administrative Preferences to Static Routes
By default, static routes are assigned a preference value of 1. The following command changes this
default:
console#Config
ip route distance 20
exit
When you configure a static route, you can assign a preference value to it. The preference overrides the
setting inherited as the default value for static routes.
In this example, two static routes are defined to the same destination but with different next hops and
different preferences (25 and 30). The route with the higher preference will only be used when the
preferred route is unavailable:
console#Config
ip route 10.25.67.0 255.255.255.0 10.25.22.2
ip route 10.25.67.0 255.255.255.0 10.25.21.0
exit
Similarly, you can create two default routes—one preferred and the other used as a backup. In this
example, the preference values 1 and 10 are assigned:
console#Config
ip route default 10.25.67.2 1
ip route default 10.25.67.7 10
exit