Archive for the ‘NAD710A’ Category

Linux Machines as Routers – Network Scenario

November 20, 2008

The scenario has 3 desktops and 2 routers, remember that all of then are Linux computers.

  • Topology

topology1

  • Configurations

Desktop A
route add -net 172.17.0.0 gw 11.0.0.254
route add -net 192.168.2.0 netmask 255.255.255.0 gw 11.0.0.254

Desktop B

route add -net 11.0.0.0 netmask 255.0.0.0 gw 172.17.0.254
route add -net 192.168.2.0 netmas, 255.255.255.0 gw 172.17.254.254

Desktop C

route add -net 172.17.0.0 netmask 255.255.0.0 gw 192.168.2.254
route add -net 11.0.0.0 gw 192.168.2.254

Router ABC

eth0 172.17.0.254/16
eth0:1 11.0.0.254/8
echo “1” > /proc/sys/net/ipv4/ip_forward
route add -net 192.168.2.0 gw 172.17.254.254

ROUTER BCA

eth0 172.17.254.254/16
eth0:1 192.168.2.254/24
echo “1” > /proc/sys/net/ipv4/ip_forward
route add -net 11.0.0.0 netmask 255.0.0.0 gw 172.17.0.254

Advertisements

Samba How To, Using “system-config-samba” – Fedora 9

November 9, 2008

Required packages:

  • samba-3.2.4-0.21.fc9.i386
  • system-config-samba-1.2.63-1.fc9.noarch
  • samba-common-3.2.4-0.21.fc9.i386
  • samba-client-3.2.4-0.21.fc9.i386

Installing the required packages using yum:

#yum -y install samba system-config-samba samba-common samba-clients

Then execute system-config-samba to set the configurations for the samba server. The samba configuration file is /etc/samba/smb.conf

samba01

samba02

samba03

samba04

samba05

Your samba configuration file (/etc/samba/smb.conf) is going to be something like this:

[global]
workgroup = milton
server string = Milton’s Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
cups options = raw
username map = /etc/samba/smbusers

[homes]
comment = Home Directories
browseable = no
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

[tmp]
path = /tmp
writeable = yes
valid users = milton

After a user login using a windows machine, It will have access to two folders, their home directory and the tmp folder.

If you have some problems in the server, just go to the folder /var/log/samba and check the log files:

  • log.nmbd
  • log.smbd

Actually I don’t like to use graphical tools to set up my servers, but this tools can really save you some time.

logo_samba

Func RPM Verification Module – Release 0.1

November 3, 2008

Official Project Page:
https://fedorahosted.org/func/

Proposal of project:

Create a Func module that allows the system administrator to audit the integrity of all the rpms installed in all systems.

Verifying the Integrity of the Current System

The integrity of the rpms of the local system can be verified by the command:
# rpm –verify -a

–verify – verify the package
-a – option for all packages

A presentation of the purposed project is available:

Presentation.pdf

Presentation.odt

Email to Func Mail List:

I sent a email to the Func Project mail list to telling about my intention of making the verification module

Hi my name is Milton Paiva, I am student of the Post-Graduate (Graduate
Certificate) Course - Linux and Unix System Administration from the
Seneca College and I just beginning to work in module for Func.

I intend to make a module able to execute the command "rpm --verify -a"
 to verify the integrity of all the packages on a given system.

I saw the module rpm inventory and I am thinking in make this module to
work in the same way as inventory, but instead of get all the rpms
installed in the system, I will verify the integrity of all the rpms
already installed in the system.

_______________________________________________
Func-list mailing list
Func-list@redhat.com
https://www.redhat.com/mailman/listinfo/func-list

Links:

(1) http://fedoraproject.org/wiki/SummerCoding/2008/Ideas

(2) https://fedorahosted.org/func/

(3) http://zenit.senecac.on.ca/wiki/index.php/Potential_Projects

NAD710 – LAB 1

September 6, 2008

Questions

Based on the information collected, answer the following questions:

1) What is the kernel version of Linux on matrix?

2.6.18.8-0.5-default

2) What is the IP address and MAC address of the Linux machine on matrix?

IP: 192.168.1.59

MAC: 00:0E:0C:7F:84:79

3) What is the network mask on matrix?

255.255.255.0

4) What are the network addresses of the Linux machine? (there should be three networks)

device “eth0”
192.168.1.59 – host
192.168.1.255 – broadcast
device “lo”
127.0.0.1 – loopback

5) What is the IP address of the gateway for the Linux machine on matrix?

192.168.1.254

6) What is the command to display all the currently loaded kernel modules?

$ lsmod

7) Where is the file for the kernel module called “e100”?

/lib/modules/2.6.18.8-0.5-default/kernel/drivers/net/e100.ko

8 ) What is the MAC address for the network device that has the IP address 192.168.1.254?

00:0E:0C:7F:84:6F

9) How do you display all the physically network addresses known by a Linux machine?

$ arp -a

10) What is the MAC address of the network device on the Linux machine on matrix ?

00:07:E9:F6:36:1F