Engr. Bhai Nhuraisha I. Deplomo
Engr. Bhai Nhuraisha I. Deplomo
Engr. Bhai Nhuraisha I. Deplomo
Deplomo
Lecture
ifconfig
• ifconfig (interface configurator) command is use to initialize
an interface, assign IP Address to interface
and enable or disableinterface on demand. With this
command you can view IP Address and Hardware / MAC
address assign to interface and also MTU (Maximum
transmission unit) size.
To display the network setting of a
specific interface, you can specify the
interface in the ifconfig command:
You can use the ifconfig command to configure an IP
address. You need to specify the interface you would like
to configure, the IP address and the subnet address.
You can also enable and disable
an interface using the ifconfig
To configure the Static and
Dynamic Ip add
• /etc/network/interfaces
• auto eth0 – the first Ethernet interface is usually identified as eth0.
• iface eth0 inet static – defines that the static configuration will be
used .
• Sudo /etc/init.d/networking/restart
PING
• PING (Packet INternet Groper) command is the best way to
test connectivity between two nodes. Whether it is Local
Area Network (LAN) or Wide Area Network (WAN). Ping
use ICMP(Internet Control Message Protocol) to
communicate to other devices. You can ping host name
of ip address using below command.
Firewall - ufw
• Sudo ufw status
• Sudo ufw default allow
• Sudo ufw default deny
• Sudo ufw enable
• Sudo ufw disable
• Sudo ufw enable 80
• Sudo ufw allow from 20.44. x.x
• Sudo ufw allow from 20.44. x.x to xxxx
• Sudo ufw allow from 20.44. x.x to any port 20
• Sudo ufw delete allow 80
Step #1 Install the Windows
ISO
Step #1 Install the Windows
ISO
Step #2 Set the Network
Adapter in VM Ware/Virtual Box
• Click the Settings icon
• Network icon
• Choose the Bridge Adapter
Step #3 Set the Bridge Adapter
in Windows
Step #4 Set the Bridge Adapter in
LINUX
Step #5 In the Control Panel, Click
the “Network and Internet”
Step #6 Click the “Local Area
Network”
Step #7-Click the “Properties”
Step 8 – Click the TCP/IPv4
Click “Properties”
Step 9 – Set the IP Address
Step 10- Set the IP address in
LINUX.Click the Edit Connections
Click the Wired Connection.Click
Edit
Input the IP Address and Save
Step #11 Turn off the Firewall
Step 12 – Test the Connection
• Ping the Ubuntu Computer
Step 13 – In Windows, create a Folder.
Right click, click Advance
Sharing.Click Full Control. Click Apply
Step 14 In Linux, Go to the
Network Tool. Click the Windows
Network.Click the WorkGroup.
Click BhaiPC
LINUX AND WINDOWS network
Step 15 install Samba
• To install Samba, connect your Virtual Box/Ubuntu to the
internet
To connect to the internet
• Click the Network Settings. Choose the NAT.
• Then, go to Network Connection and go to Wired tab and select your connection
and Edit. Use Automatic (DHCP) under IPv4 Settings. Also you can check the
connect automatically. Then your system will be connected to network every time
you open it.
Installing Samba
• [Bhai]
comment = Bhai's Files
path = /path/to/folder
writable = yes
read only = yes
create mask = 0755
available = yes
• Lipata • Framil
• Acosta • Olazo
• Ibanez • Tante
• Gregorio • Dela Cruz
Installing Samba
Troubleshooting
• sudo apt-get clean
• sudo apt-get autoclean
• sudo apt-get -f install
• sudo dpkg --configure -a
• sudo apt-get -f install sudo apt-get -f install
• sudo apt-get -u dist-upgrade
• apt update
• apt upgrade
Troubleshooting
• sudo apt-get update && sudo apt-get upgrade && sudo
apt-get dist-upgrade sudo apt-get install samba
• sudo mv /var/cache/apt/archives/lock
/var/cache/apt/archives/lock_bak