Konfigurasi IPv6 dan Route di linux core (tinycore)

My practice using tinycorelinux, it's usually used in GNS3 and usually used to test network connectivity, because it's lightweight.

Add an IPv6 address

There are two ways :

1. Using "ip"

Usage:

# /sbin/ip -6 addr add <ipv6address>/<prefixlength> dev <interface> 
Example:

# /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0 

2. Using "ifconfig"

Usage:

# /sbin/ifconfig <interface> inet6 add <ipv6address>/<prefixlength>
Example:

# /sbin/ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64

Show IP Address

# /sbin/ifconfig eth0
or
# /sbin/ip -6 addr show dev eth0





Add Route

Add an IPv6 route through a gateway :

1. Using "ip"

Usage:

# /sbin/ip -6 route add <ipv6network>/<prefixlength> via <ipv6address> dev <device>
Example:

# /sbin/ip -6 route add 2000::/3 via 2001:0db8:0:f101::1

2. Using "route"

Usage:

# /sbin/route -A inet6 add <ipv6network>/<prefixlength> gw <ipv6address> dev <device> 
A device can be needed, too, if the IPv6 address of the gateway is a link local one.

Following shown example adds a route for all currently global addresses (2000::/3) through gateway 2001:0db8:0:f101::1

# /sbin/route -A inet6 add 2000::/3 gw 2001:0db8:0:f101::1

the above command is only temporary, if it a reboot, then the configuration will be lost

for permanent use the following configuration, example:

Add the following commands to the /opt/bootlocal.sh file on your tinycore using the vi text editor. These commands will run when the TinyCore Linux virtual machine starts.
Add at the bottom :

ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0
pkill udhcpc

Then execute the backup command:


$ filetool.sh -b


For more explanations, please refers to :
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/
http://www.brianlinkletter.com/persistent-configuration-changes-in-tinycore-linux/
http://itekblog.com/tiny-core-linux-remote-desktop-kiosk/
http://wiki.tinycorelinux.net/wiki:start#installing

Komentar

Postingan populer dari blog ini

Cara memahami dan menghafal model OSI dengan analogi

Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View)

Table of Contents