RSS

MPLS-Linux 1,3 Instalasi

28 Jan

Instalasi skrip.

Installing these scripts (along with the documentation) should be straight forward: Instalasi skrip ini (beserta dokumentasi) harus lurus ke depan:

  • download the archive: wget http://www.elcom.pub.ro/~adrian.popa/mpls-linux/mpls-linux-labs_v1.950.tar download arsip: wget http://www.elcom.pub.ro/ ~ adrian.popa/mpls-linux/mpls-linux-labs_v1.950.tar

  • untar the archive: untar arsip:
    cp mpls-linux-labs_v1.950.tar /tmp cp MPLS-linux-labs_v1.950.tar / tmp
    cd /tmp cd / tmp
    tar xvf mpls-linux-labs_v1.950.tar tar-xvf linux-MPLS labs_v1.950.tar
    cp -ar mpls-linux-labs_v1.950/ computer_name /scripts.tar /root cp-ar MPLS-linux-labs_v1.950 / computer_name / scripts.tar / Root
    cd /root cd / root
    tar xvf scripts.tar tar xvf scripts.tar

Notes: Catatan:

  • The experiments were developed for mpls-linux version 1.950, so they might not work for other versions of mpls-linux! Percobaan yang telah dikembangkan untuk MPLS-linux versi 1,950, sehingga mereka tidak mungkin bekerja untuk versi MPLS-linux! If somebody ports some/all experiments to newer versions, please release the updated scripts. Jika ada beberapa port / percobaan untuk semua versi, silakan membuka Diperbaharui skrip.

  • In the commands above, computer_name is the name of this computer (for example E1, A2, etc. This is because all the scripts on all the computers are bundled in the same archive, but you only need one directory per computer. Dalam perintah di atas, computer_name adalah nama komputer ini (misalnya E1, A2, dsb Hal ini disebabkan karena semua skrip pada semua komputer yang digabungkan dalam arsip yang sama, namun Anda hanya perlu satu direktori per komputer.

  • From now on, your current working directory is assumed to be /root/mpls-linux-labs_v1.950/computer_name/ and all commands are relative to this path. Mulai sekarang, Anda saat ini bekerja direktori dianggap / root/mpls-linux-labs_v1.950/computer_name / dan semua perintah yang relatif ke path ini. Again, computer_name varies from computer to computer. Sekali lagi, computer_name bervariasi dari komputer ke komputer.

  • In addition to these scripts, you’ll also need to download 4 movie clips and save them on A3 and A1 in /root/media . Selain skrip ini, Anda juga perlu untuk men-download klip video dan 4 menyimpannya pada A3 dan A1 di / root / media. Please note that these movie clips are optional, and you can build your own movie clips from a TV tuner or an avi file, but please keep in mind that all movie clips have a data rate of 4000kbps! Perlu diketahui bahwa klip video ini adalah opsional, dan Anda dapat membuat sendiri klip video dari TV tuner atau avi file, namun harap diingat bahwa semua klip video yang memiliki data rate 4000kbps! If you wish to download these clips, be warned that they are about 256MB in length! Jika Anda ingin mendownload klip ini, akan memberikan peringatan bahwa mereka akan 256MB panjang!

    Clip A (46MB): “Discovery Channel”, 90s, 320×240, 30fps, 4000kbps, used in “QoS-based TE”, “Link protection”, “E-LSP”, “L-LSP” – http://www.elcom.pub.ro/~adrian.popa/mpls-linux/media/a.mpg J klip (46MB): “Discovery Channel”, 90s, 320×240, 30fps, 4000kbps, digunakan dalam “QoS berbasis TE”, “Link perlindungan”, “E-LSP”, “L-LSP” – http://www . elcom.pub.ro / ~ adrian.popa / MPLS-linux / media / a.mpg

    Clip B (30MB): “National Geographic”, 60s, 320×240, 30fps, 4000kbps, used in “QoS-based TE” – http://www.elcom.pub.ro/~adrian.popa/mpls-linux/media/b.mpg Klip B (30MB): “National Geographic”, 60s, 320×240, 30fps, 4000kbps, digunakan dalam “QoS berbasis TE” – http://www.elcom.pub.ro/ ~ adrian.popa / MPLS-linux / media / b.mpg

    Clip C (30MB): “Animal Planet”, 60s, 320×240, 30fps, 4000kbps, used in “E-LSP”, “L-LSP” – http://www.elcom.pub.ro/~adrian.popa/mpls-linux/media/c.mpg Klip C (30MB): “Animal Planet”, 60s, 320×240, 30fps, 4000kbps, digunakan dalam “E-LSP”, “L-LSP” – http://www.elcom.pub.ro/ ~ adrian.popa / mpls-linux/media/c.mpg

    Clip F (151MB): “National Geographic – 2”, 6m, 320×240, 30fps, 4000kbps, used in “Node protection” – http://www.elcom.pub.ro/~adrian.popa/mpls-linux/media/f.mpg Klip F (151MB): “National Geographic – 2”, 6m, 320×240, 30fps, 4000kbps, digunakan dalam “Node perlindungan” – http://www.elcom.pub.ro/ ~ adrian.popa / MPLS-linux / media / f.mpg

  • If you would like to download this documentation, use this link: http://www.elcom.pub.ro/~adrian.popa/mpls-linux/mpls-linux-docs_v1.950.tar.gz Jika Anda ingin men-download dokumentasi ini, gunakan link ini: http://www.elcom.pub.ro/ ~ adrian.popa/mpls-linux/mpls-linux-docs_v1.950.tar.gz

Installing mpls-linux Instalasi MPLS-linux

Here is a series of steps you need to complete to install mpls-linux on all the ‘core’ computers (E1-E5). Berikut adalah beberapa langkah yang perlu untuk menginstal lengkap MPLS-linux pada semua ‘inti’ komputer (E1-E5). The installation was done in Debian Linux, but the steps are similar for other distributions. Instalasi telah dilakukan dalam Debian Linux, tetapi langkah-langkah yang sama untuk distribusi lainnya. The installation uses mpls-linux version 1.950; for the current and newer versions, please read the readme in the mpls-linux project page first. Instalasi menggunakan MPLS-versi linux 1,950; untuk saat ini dan versi baru, silahkan membaca README di MPLS linux-proyek halaman pertama.

  1. Download the necessary packets from the net. Download paket yang diperlukan dari bersih. These include Kernel 2.6.15.1, mpls-linux and iptables, iproute, ebtables with MPLS support. Ini termasuk kernel 2.6.15.1, MPLS-linux dan iptables, iproute, ebtables dengan dukungan MPLS.

# mkdir downloads # Mkdir download

# cd downloads/ # Cd download /

downloads# wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/mpls-linux-1.950.tar.bz2 download # wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/mpls-linux-1.950.tar.bz2

downloads# wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/iptables-1.3.0-2_mpls_1.950d.i386.rpm download # wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/iptables-1.3.0-2_mpls_1.950d.i386.rpm

downloads# wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/iproute-2.6.11-1_mpls_1.950d.i386.rpm download # wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/iproute-2.6.11-1_mpls_1.950d.i386.rpm

downloads# wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/ebtables-2.0.6-7_mpls_1.950d.i386.rpm download # wget http://switch.dl.sourceforge.net/sourceforge/mpls-linux/ebtables-2.0.6-7_mpls_1.950d.i386.rpm

downloads# wget ftp://ftp.roedunet.lkams.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.1.tar.bz2 download # wget ftp://ftp.roedunet.lkams.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.1.tar.bz2

downloads# cp * /usr/src download # cp * / usr / src

downloads# cd /usr/src download # cd / usr / src

  1. Untar the Linux kernel and mpls-linux package. Untar kernel Linux dan MPLS linux-paket. Apply the patch to the kernel to add MPLS support. Menerapkan patch ke kernel untuk menambahkan dukungan MPLS. When applying the pacth, it’s very important that the user receives the italic output. Ketika menerapkan pacth, itu sangat penting bagi pengguna menerima italic output.

/usr/src# tar jxf linux-2.6.15.1.tar.bz2 / usr / src # tar jxf linux-2.6.15.1.tar.bz2

/usr/src# tar jxf mpls-linux-1.950.tar.bz2 / usr / src # tar jxf MPLS-linux-1.950.tar.bz2

/usr/src# cd linux-2.6.15.1 / usr / src # cd linux-2.6.15.1

/usr/src/linux-2.6.15.1# patch -p1 < /usr/src/mpls-linux-1.950/patches/linux-kernel.diff / usr/src/linux-2.6.15.1 # patch-p1 </ usr/src/mpls-linux-1.950/patches/linux-kernel.diff

patching file include/linux/genetlink.h patch file include / linux / genetlink.h

patching file include/linux/if_arp.h patch file include / linux / if_arp.h

patching file include/linux/mpls.h patch file include / linux / mpls.h

patching file include/linux/netdevice.h patch file include / linux / netdevice.h

patching file include/linux/ppp_defs.h patch file include / linux / ppp_defs.h

patching file include/linux/rtnetlink.h patch file include / linux / rtnetlink.h

patching file include/linux/shim.h patch file include / linux / shim.h

patching file include/linux/socket.h patch file include / linux / socket.h

patching file include/net/ip6_fib.h patch file include/net/ip6_fib.h

patching file include/net/ip_fib.h patch file include / net / ip_fib.h

patching file include/net/mpls.h patch file include / net / mpls.h

patching file include/net/shim.h patch file include / net / shim.h

patching file net/bridge/Kconfig patch file net / bridge / Kconfig

patching file net/bridge/Makefile patch file net / bridge / Makefile

patching file net/bridge/mplsbr.c patch file net / bridge / mplsbr.c

patching file net/bridge/netfilter/ebt_mpls.c patch file net / bridge / Netfilter / ebt_mpls.c

patching file net/bridge/netfilter/Kconfig patch file net / bridge / Netfilter / Kconfig

patching file net/bridge/netfilter/Makefile patch file net / bridge / Netfilter / Makefile

patching file net/core/dev.c patch file net / core / dev.c

patching file net/core/Makefile patch file net / core / Makefile

patching file net/core/shim.c patch file net / core / shim.c

patching file net/core/shim_procfs.c patch file net / core / shim_procfs.c

patching file net/ipv4/fib_semantics.c patch file net/ipv4/fib_semantics.c

patching file net/ipv4/ip_input.c patch file net/ipv4/ip_input.c

patching file net/ipv4/ip_output.c patch file net/ipv4/ip_output.c

patching file net/ipv4/Kconfig patch file net/ipv4/Kconfig

patching file net/ipv4/Makefile patch file net/ipv4/Makefile

patching file net/ipv4/mpls4.c patch file net/ipv4/mpls4.c

patching file net/ipv4/netfilter/ipt_mpls.c patch file net/ipv4/netfilter/ipt_mpls.c

patching file net/ipv4/netfilter/Kconfig patch file net/ipv4/netfilter/Kconfig

patching file net/ipv4/netfilter/Makefile patch file net/ipv4/netfilter/Makefile

patching file net/ipv4/route.c patch file net/ipv4/route.c

patching file net/ipv6/ip6_output.c patch file net/ipv6/ip6_output.c

patching file net/ipv6/ipv6_syms.c patch file net/ipv6/ipv6_syms.c

patching file net/ipv6/Kconfig patch file net/ipv6/Kconfig

patching file net/ipv6/Makefile patch file net/ipv6/Makefile

patching file net/ipv6/mpls6.c patch file net/ipv6/mpls6.c

patching file net/ipv6/netfilter/ip6t_mpls.c patch file net/ipv6/netfilter/ip6t_mpls.c

patching file net/ipv6/netfilter/Kconfig patch file net/ipv6/netfilter/Kconfig

patching file net/ipv6/netfilter/Makefile patch file net/ipv6/netfilter/Makefile

patching file net/ipv6/route.c patch file net/ipv6/route.c

patching file net/Kconfig patch file net / Kconfig

patching file net/Makefile patch file net / Makefile

patching file net/mpls/af_mpls.c patch file net / MPLS / af_mpls.c

patching file net/mpls/Makefile patch file net / MPLS / Makefile

patching file net/mpls/mpls_dst.c patch file net / MPLS / mpls_dst.c

patching file net/mpls/mpls_if.c patch file net / MPLS / mpls_if.c

patching file net/mpls/mpls_ilm.c patch file net / MPLS / mpls_ilm.c

patching file net/mpls/mpls_init.c patch file net / MPLS / mpls_init.c

patching file net/mpls/mpls_input.c patch file net / MPLS / mpls_input.c

patching file net/mpls/mpls_instr.c patch file net / MPLS / mpls_instr.c

patching file net/mpls/mpls_netlink.c patch file net / MPLS / mpls_netlink.c

patching file net/mpls/mpls_nhlfe.c patch file net / MPLS / mpls_nhlfe.c

patching file net/mpls/mpls_opcode.c patch file net / MPLS / mpls_opcode.c

patching file net/mpls/mpls_output.c patch file net / MPLS / mpls_output.c

patching file net/mpls/mpls_procfs.c patch file net / MPLS / mpls_procfs.c

patching file net/mpls/mpls_proto.c patch file net / MPLS / mpls_proto.c

patching file net/mpls/mpls_shim.c patch file net / MPLS / mpls_shim.c

patching file net/mpls/mpls_sysfs.c patch file net / MPLS / mpls_sysfs.c

patching file net/mpls/mpls_tunnel.c patch file net / MPLS / mpls_tunnel.c

patching file net/mpls/mpls_utils.c patch file net / MPLS / mpls_utils.c

patching file net/mpls/TODO patch file net / MPLS / TODO

patching file net/xfrm/xfrm_shim.c patch file net / xfrm / xfrm_shim.c

  1. Start configuring the kernel. Mulai mengkonfigurasi kernel. The user will activate all modules and drivers needed for the correct functioning of his system. Pengguna akan mengaktifkan semua modul dan driver yang diperlukan untuk berfungsi dengan benar kepada sistem. In addition MPLS support will be added. Selain dukungan MPLS akan ditambahkan. These additional elements must be added so that they can be used by the scripts. Tambahan elemen ini harus ditambahkan agar dapat digunakan oleh skrip.
    BEWARE: A wrong kernel configuration CAN result in an unbootable system!!! BEWARE: A salah konfigurasi kernel DAPAT mengakibatkan sistem unbootable!

/usr/src/linux-2.6.15.1# make menuconfig / usr/src/linux-2.6.15.1 # make menuconfig

  • In Networking Options the following items will be compiled in kernel [ Networking Options Screenshot ]: Dalam Jaringan Pilihan item berikut akan dikompilasi di kernel [Jaringan Pilihan Screenshot]:

    • <*> Multiprotocol Label Switching <*> Multiprotocol Label Switching

    • <*> MPLS: Virtual tunnel interface <*> MPLS: Virtual terowongan antarmuka

    • <*> 802.1d Ethernet Bridging <*> 802.1d Ethernet Bridging

    • <*> Bridge: MPLS support <*> Bridge: MPLS support

  • In Network Packet Filtering (replaces ipchains), IP: Netfilter configuration will be selected Dalam Jaringan Packet Filtering (menggantikan ipchains), IP: Netfilter konfigurasi akan dipilih

  • In IP: Netfilter configuration menu the following minimum options will be selected [ IP Netfilter Screenshot ]: Dalam IP: Netfilter konfigurasi menu pilihan berikut minimum akan memilih [IP Netfilter Screenshot]:

    • <*> Packet Filtering <*> Packet Filtering

    • <*> Packet Mangling <*> Packet Mangling

    • <*> MPLS target support <*> MPLS target dukungan

    • <*> DSCP target support <*> DSCP target dukungan

  • In Network Packet Filering (replaces ipchains) select Bridge: Netfilter configuration Dalam Jaringan paket Filering (menggantikan ipchains) pilih Bridge: Netfilter konfigurasi

  • In Bridge: Netfilter configuration menu the following minimum options will be selected[ Bridge Netfilter Screenshot ]: Dalam Bridge: Netfilter konfigurasi menu pilihan berikut minimum akan memilih [Bridge Netfilter Screenshot]:

    • <*> Ethernet Bridge tables (ebtables) support <*> Ethernet Bridge tables (ebtables) mendukung

    • <*> ebt: broute table support <*> Ebt: broute tabel mendukung

    • <*> ebt: filter table support <*> Ebt: filter tabel mendukung

    • <*> ebt: nat table support <*> Ebt: tabel nat dukungan

    • <*> ebt: 802.3 filter support <*> Ebt: 802,3 penyaring dukungan

    • <*> ebt: MPLS target support <*> Ebt: MPLS target dukungan

  • In Networking Options select QoS and fair queueing Dalam Jaringan pilih Pilihan QoS dan adil queueing

  • From the submenu, select all options either compiled into the kernel or as modules [ QoS Screenshot ]. Dari submenu, pilih semua pilihan yang baik dikompilasi ke dalam kernel atau sebagai modul [QoS Screenshot].

  1. Compile and install the new kernel. Mengkompilasi dan menginstal kernel baru.

/usr/src/linux-2.6.15.1# make && make modules && make modules_install && make install / usr/src/linux-2.6.15.1 # make & & make modules & & make modules_install & & make install

/usr/src/linux-2.6.15.1# cat /boot/grub/menu.lst / usr/src/linux-2.6.15.1 # cat / boot / grub / menu.lst

title MPLS judul MPLS

root (hd0,4) #replace with your settings root (hd0, 4) # ganti dengan pengaturan

kernel /boot/vmlinuz-2.6.15.1 root=/dev/hda5 kernel / boot/vmlinuz-2.6.15.1 root = / dev/hda5

boot boot

  1. Convert to deb and install the following packages: iproute, iptables and ebtables. Dikonversi ke deb dan menginstal paket-paket berikut: iproute, iptables dan ebtables.

/usr/src# alien iproute-2.6.11-1_mpls_1.950d.i386.rpm / usr / src # iproute asing-2.6.11-1_mpls_1.950d.i386.rpm

iproute_2.6.11-2_i386.deb generated iproute_2.6.11-2_i386.deb dihasilkan

/usr/src# alien –scripts iptables-1.3.0-2_mpls_1.950d.i386.rpm / usr / src # alien – script iptables-1.3.0-2_mpls_1.950d.i386.rpm

iptables_1.3.0-3_i386.deb generated iptables_1.3.0-3_i386.deb dihasilkan

/usr/src# alien –scripts ebtables-2.0.6-7_mpls_1.950d.i386.rpm / usr / src # alien – script ebtables-2.0.6-7_mpls_1.950d.i386.rpm

ebtables_2.0.6-8_i386.deb generated ebtables_2.0.6-8_i386.deb dihasilkan

/usr/src# dpkg -i iproute_2.6.11-2_i386.deb / usr / src # dpkg-i iproute_2.6.11-2_i386.deb

dpkg – warning: downgrading iproute from 20051007-3 to 2.6.11-2. dpkg – warning: downgrading iproute 20051007-3 ke 2.6.11-2.

(Reading database … 76030 files and directories currently installed.) (Reading database … 76030 berkas dan direktori yang terpasang saat ini.)

Preparing to replace iproute 20051007-3 (using iproute_2.6.11-2_i386.deb) … Mempersiapkan untuk menggantikan iproute 20051007-3 (menggunakan iproute_2.6.11-2_i386.deb) …

Unpacking replacement iproute … Unpacking replacement iproute …

Setting up iproute (2.6.11-2) … Menyiapkan iproute (2.6.11-2) …

Installing new version of config file /etc/iproute2/rt_dsfield … Menginstal versi baru dari file konfigurasi / etc/iproute2/rt_dsfield …

Installing new version of config file /etc/iproute2/rt_protos … Menginstal versi baru dari file konfigurasi / etc/iproute2/rt_protos …

Installing new version of config file /etc/iproute2/rt_realms … Menginstal versi baru dari file konfigurasi / etc/iproute2/rt_realms …

Installing new version of config file /etc/iproute2/rt_scopes … Menginstal versi baru dari file konfigurasi / etc/iproute2/rt_scopes …

Installing new version of config file /etc/iproute2/rt_tables … Menginstal versi baru dari file konfigurasi / etc/iproute2/rt_tables …

/usr/src# cp /bin/true /sbin/chkconfig / usr / src # cp / bin / true / sbin / chkconfig

/usr/src# dpkg -i iptables_1.3.0-3_i386.deb / usr / src # dpkg-i iptables_1.3.0-3_i386.deb

dpkg – warning: downgrading iptables from 1.3.3-2 to 1.3.0-3. dpkg – warning: downgrading iptables dari 1.3.3-2 ke 1.3.0-3.

(Reading database … 75999 files and directories currently installed.) (Reading database … 75999 berkas dan direktori yang terpasang saat ini.)

Preparing to replace iptables 1.3.3-2 (using iptables_1.3.0-3_i386.deb) … Mempersiapkan untuk menggantikan iptables 1.3.3-2 (menggunakan iptables_1.3.0-3_i386.deb) …

Unpacking replacement iptables … Unpacking replacement iptables …

Setting up iptables (1.3.0-3) … Menyiapkan iptables (1.3.0-3) …

/usr/src# dpkg -i ebtables_2.0.6-8_i386.deb / usr / src # dpkg-i ebtables_2.0.6-8_i386.deb

Selecting previously deselected package ebtables. Sebelumnya memilih paket terpilih ebtables.

(Reading database … 75906 files and directories currently installed.) (Reading database … 75906 berkas dan direktori yang terpasang saat ini.)

Unpacking ebtables (from ebtables_2.0.6-8_i386.deb) … Unpacking ebtables (dari ebtables_2.0.6-8_i386.deb) …

Setting up ebtables (2.0.6-8) … Menyiapkan ebtables (2.0.6-8) …

Ok. you’re ready. Ok. Anda siap. Make sure the kernel compiled correctly and restart your computer(s). Pastikan kernel dikompilasi dengan benar dan restart komputer Anda (s). On reboot, select the MPLS kernel and you’re good to go. Pada reboot, pilih kernel dan MPLS you’re good to go. To verify that there is MPLS support in the new kernel, after reboot run dmesg |grep MPLS and you should get some output. Untuk memastikan bahwa ada dukungan MPLS di kernel baru, reboot setelah menjalankan dmesg | grep MPLS dan Anda harus mendapatkan beberapa output.

Note: If you chose to install things as modules, MAKE SURE that they load before running the scripts, or you could get errors! Catatan: Jika anda memilih untuk memasang sesuatu sebagai modul, MEMBUAT SURE bahwa beban mereka sebelum menjalankan skrip, atau anda bisa mendapatkan error!

 
1 Comment

Posted by on January 28, 2009 in Networking

 

Leave a comment