12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7Once your new kernel with AppleTalk protocol is running, you can assignAppleTalk addresses to your interface using the ifconfig(8) utility:# ifconfig fxp0 atalk 725.40 range 725-727atalk 725.40 range 725-727 phase 2You have to add the following line to your /etc/rc.conf file to make the changespermanent, and to automatically assign the address to interface after system bootup:ifconfig_fxp0="atalk 725.40 range 725-727"To verify AppleTalk address assignment, you should use ifconfig again:# ifconfig fxp0 atalkfxp0: flags=8843 metric0 mtu 1500options=9atalk 725.40 range 725-727 phase 2 broadcast 0.255For "File and Printer Sharing" using AppleTalk protocol, you should usenetatalk software, which is available from ports system and is locatedunder the /usr/ports/net/netatalk subdirectory.Configuring Secondary (alias) IP AddressesThere are different scenarios where you need multiple IP addresses (called aliases)on the same network interface. These may include running virtual web hosts on asingle machine using different IP addresses, or being a gateway for different subnets.Theoretically, you may have an unlimited number of alias addresses on an interface.Aliases can be added and removed using the ifconfig(8) utility.The following example shows assigning an IP address to the fxp0 interface and thenadding multiple aliases to the same interface:# ifconfig fxp0 192.168.0.11/24# ifconfig fxp0 10.0.1.33/24 alias# ifconfig fxp0 10.0.21.1/25 aliasIn the above example, three IP addresses are assigned to the fxp0 interface. The firstIP address, 192.168.0.11/24 is assigned as the primary IP address whiletwo others are added as aliases or secondary addresses. In order to make thesechanges permanent, you should add the following lines (Note the _alias suffix) tothe /etc/rc.conf file:ifconfig_fxp0="inet 192.168.0.5/24"[ 109 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!