Z’s Blog

Routene setzte ufemne BSD

by on Aug.26, 2010, under Betriebssystem

Bevor dasme d’Route geid go ändere, chönntme zersch mou schnäu luege was fürigi Routene bereits im System dinne stöh.
mach chasch das mit:

# netstat -r

um etz e Route z’setzte, bruchsch:

# route add 9.9.9.9 10.10.10.10

Das gid dir d’Route füre Host 9.9.9.9 via Gateway 10.10.10.10.

# route add 9.9.9.0/24 10.10.10.10

gid d’Route für’s Netwärch 9.9.9.0/24 via Gateway 10.10.10.10.

Default Gateway gisch eso a:

# route add default 10.10.10.10

Dr ganz Traffic wozues ke spezielli Route gid und nid im gliche Subnetz ligt geid jetz via 10.10.10.10.

Default Route chame ou i d’rc.conf schribe:

# echo defaultrouter=”10.10.10.10″ > /etc/rc.conf

:, , , ,

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!