Linux Router
Linux Router
R1
-------------------------------------------------
en
conf t
int f0/0
ip add 192.168.1.1 255.255.255.0
no shut
exit
int f0/1
ip add 192.168.2.1 255.255.255.0
no shut
exit
router rip
version 2
network 192.168.1.0
network 192.168.2.0
---------------------------------
Ubuntu Server
---------------------------------
telnet localhost 2601
//////password: zebra///////////
en
//////password: zebra///////////
conf t
int eth1
ip add 192.168.1.2/24
no shut
exit
int eth0
ip add 192.168.0.1/24
no shut
exit
do wr
/////exit----desktop////
/////exit ----desktop/////
///////////Apache///////
sudo apt-get install apache2
systemctl status apache2
sudo apt-get install php libapache2-mod-php php-mysql
systemctl restart apache2
-----/var/www/html/------guardan paginas---documentroot
cd /var/www/html/
touch info.php
nano info.php
<?php
phpinfo();
?>
---
instalar base de datos----mariadb-------
sudo apt-get install mysql-server
sudo mysql_secure_installation
mysql -u root -p
show databases;
-----------phpadmyn
sudo apt update
sudo apt install phpmyadmin php-mbstring php-gettext
--------------
nano /etc/apache2/apache2.conf
----Include /etc/phpmyadmin/apache2.conf
alter user 'root'@'localhost' identified by 'eve'
CREATE USER 'paul'@'localhost' IDENTIFIED BY '1805242235';
-----------------------------------------------ospfd ipv6---------------
apt-get -y install quagga
sudo apt install quagga-doc
echo 'net.ipv4.conf.all.forwarding=1' | tee -a /etc/sysctl.conf
echo 'net.ipv4.conf.default.forwarding=1' | tee -a /etc/sysctl.conf
touch /etc/quagga/zebra.conf
touch /etc/quagga/ospf6d.conf
chown quagga:quagga /etc/quagga/zebra.conf && chmod 640 /etc/quagga/zebra.conf
chown quagga:quagga /etc/quagga/ospf6d.conf && chmod 640 /etc/quagga/ospf6d.conf
touch /etc/quagga/vtysh.conf
chown quagga:quaggavty /etc/quagga/vtysh.conf && chmod 660 /etc/quagga/vtysh.conf
echo 'zebra=yes' > /etc/quagga/daemons
echo 'ospf6d=yes' >> /etc/quagga/daemons
cat /usr/share/doc/quagga-core/examples/vtysh.conf.sample > /etc/quagga/vtysh.conf
cat /usr/share/doc/quagga-core/examples/zebra.conf.sample > /etc/quagga/zebra.conf
cat /usr/share/doc/quagga-core/examples/ospf6d.conf.sample >
/etc/quagga/ospf6d.conf
echo 'vtysh_enable=yes' > /etc/quagga/debian.conf
echo 'zebra_options=" --daemon -A 127.0.0.1 -P 2601 -u quagga -g quagga --
keep_kernel --retain"' >> /etc/quagga/debian.conf
echo 'ospf6d_options=" --daemon -A 127.0.0.1 -P 2602 -u quagga -g quagga --
keep_kernel --retain"' >> /etc/quagga/debian.conf
sudo systemctl is-enabled zebra.service
sudo systemctl is-enabled ospf6d.service
sudo systemctl enable zebra.service
sudo systemctl enable ospf6d.service
---------------R1-----------------------
en
conf t
ipv6 unicast-routing
ipv6 router ospf 1
router-id 1.1.1.1
int e0/2
ipv6 add 2001:db8:1111:1::1/64
ipv6 ospf 1 area 0
no shut
exit
int e0/0
ipv6 add 2001:db8:1111:2::1/64
ipv6 ospf 1 area 0
no shut
exit
int loopback 0
ipv6 add 2001:db8:1111:0::1/64
exit
do wr
--------- Ubuntu Server ---------------
telnet localhost 2601
contraseña: zebra
int eth0
ipv6 add 2001:db8:1111:1::2/64
no shut
exit
int eth1
ipv6 add 2001:db8:1111:3::1/64
no shut
exit
ipv6 forwarding
do wr
-----ospdf-------
telnet localhost 2606
contraseña:zebra
int eth0
ipv6 add 2001:db8:1111:1::2/64
exit
int eth1
ipv6 add 2001:db8:1111:3::1/64
exit
ipv6 forwarding
do wr
router ospf6
router-id 2.2.2.2
interface eth0 area 0.0.0.0
interface eth1 area 0.0.0.0
exit
do wr