Thursday, October 27, 2005
Saturday, October 15, 2005
Check rdisc adverts lifetime (2)
1) router : pkill -9 in.routed
2) host :
while true
do
date
netstat -rn | grep default
sleep 20
done
2) host :
while true
do
date
netstat -rn | grep default
sleep 20
done
rdisc advertisements lifetime to 135 sec
/etc/gateways :
rdisc_interval=45
* lifetime = interval*3
* default lifetime is 30 mins, which is not appropriate
rdisc_interval=45
* lifetime = interval*3
* default lifetime is 30 mins, which is not appropriate
Friday, October 14, 2005
Number of IP addresses on a subnet
255.255.255.224
256 - 224 = 32 IP addresses (but only 30 hosts)
* first IP is the address of the network itself
* last IP is the broadcast address
256 - 224 = 32 IP addresses (but only 30 hosts)
* first IP is the address of the network itself
* last IP is the broadcast address
Two conditions to become a router
1) no /etc/defaultrouter
2) ip_forwarding is not explicitly disallowed
* In Sol 9, touch /etc/notrouter. In Sol 10, "routeadm -d ipv4-forwarding"
2) ip_forwarding is not explicitly disallowed
* In Sol 9, touch /etc/notrouter. In Sol 10, "routeadm -d ipv4-forwarding"
To force in.routed advertise routing table
/usr/sbin/in.routed -s
* -s for "supply" others. -s is default if multi-homed and ip_forwarding 1
* -s for "supply" others. -s is default if multi-homed and ip_forwarding 1
Purpose of ICMP redirect
Carlos asks me to give paper to Josue when he can do it him himself.
I give him an ICMP redirect with "do it yourself"
I give him an ICMP redirect with "do it yourself"
RIP "route poisoning"
When a router is down, an update with hop-count of 16 is sent.
16 is unreachable, so the entry is removed.
16 is unreachable, so the entry is removed.
RIP "split horizons"
Never send information about a route back from where it came from.
Prevents two-node loops.
Prevents two-node loops.
RIP "hold-down state"
When a router is down, wait with any changes for some time.
This prevents correct and incorrect routes from being advertised simultaneously.
This prevents correct and incorrect routes from being advertised simultaneously.
Main advantage of RDISC
It is routing protocol independent - for every routing advertisement it adds a default route entry
in.rdisc in Solaris 10
is incorporated in in.routed. Start in.rdisc manually once, and in.routed will take over.
Config in.routed for no rip in, no rip out, or both on eri0
/etc/gateways :
noripin eri0
noripout eri0
norip eri0
noripin eri0
noripout eri0
norip eri0
Thursday, October 13, 2005
Disadvantage of static default route
/etc/defaultrouter file must be edited locally on every system - not possible on growing networks.