Step 1: Run > cmd > ipconfig /all
Expand
Looks to see which IP is the preferred and if autoconfiguration is on.
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection
Physical Address. . . . . . . . . : 00-23-24-08-30-57
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred)
Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Thursday, December 12, 2019
Cisco switch commands
poe on
power inline auto
power inline static
poe off
power inline never
show mac addresses connected interface
show mac address-table int giga...
Reset cisco switch login
Step 1:
Power off the switch first, then press and hold the mode button while you power on the switch again. Hold it for about 15 seconds until the SYS led is solid green, and then release it.
The switch should then give you this prompt:
switch:
Step 2:
To initialize the flash file system, run the command:
switch: flash_init
Initializing Flash...
flashfs[0]: 5 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 8059904
flashfs[0]: Bytes available: 24454144
flashfs[0]: flashfs fsck took 10 seconds.
...done Initializing Flash.
The switch will now print a bunch of messages about the flash memory, hopefully one of them will be ‘done initializing flash’ as above shown
Step 3:
You can now list the contents of your flash by running
switch: dir flash:
Directory of flash: /
2 -rwx 12300 config.text
4 -rwx 1906 private-config.text
5 -rwx 676 vlan.dat
6 -rwx 8040418 c2960-lanbasek9-mz.122-50.SE3.bin
7 -rwx 2072 multiple-fs
There should be a file named ‘config.text’, as you can rename this file as follows:
switch: rename flash:config.text flash: oldconfig.backup
Step 4:
To further boot the switch run the boot command as:
switch: boot
This will start the boot you are used to. When the switch is booted up, you will realize that the configuration is gone. But you are enabled on the switch now.
Step 5:
Now change the passwords,
Switch#config
Switch(config)#line console 0
Switch(config)#password yourpassword
Switch(config)#line vty 0 4
Switch(config)#password yourpassword
Switch(config)#enable password yourpassword
Switch(config)#end
Switch#copy running-configuration startup-configuration
power inline auto
power inline static
poe off
power inline never
show mac addresses connected interface
show mac address-table int giga...
Reset cisco switch login
Step 1:
Power off the switch first, then press and hold the mode button while you power on the switch again. Hold it for about 15 seconds until the SYS led is solid green, and then release it.
The switch should then give you this prompt:
switch:
Step 2:
To initialize the flash file system, run the command:
switch: flash_init
Initializing Flash...
flashfs[0]: 5 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 8059904
flashfs[0]: Bytes available: 24454144
flashfs[0]: flashfs fsck took 10 seconds.
...done Initializing Flash.
The switch will now print a bunch of messages about the flash memory, hopefully one of them will be ‘done initializing flash’ as above shown
Step 3:
You can now list the contents of your flash by running
switch: dir flash:
Directory of flash: /
2 -rwx 12300 config.text
4 -rwx 1906 private-config.text
5 -rwx 676 vlan.dat
6 -rwx 8040418 c2960-lanbasek9-mz.122-50.SE3.bin
7 -rwx 2072 multiple-fs
There should be a file named ‘config.text’, as you can rename this file as follows:
switch: rename flash:config.text flash: oldconfig.backup
Step 4:
To further boot the switch run the boot command as:
switch: boot
This will start the boot you are used to. When the switch is booted up, you will realize that the configuration is gone. But you are enabled on the switch now.
Step 5:
Now change the passwords,
Switch#config
Switch(config)#line console 0
Switch(config)#password yourpassword
Switch(config)#line vty 0 4
Switch(config)#password yourpassword
Switch(config)#enable password yourpassword
Switch(config)#end
Switch#copy running-configuration startup-configuration
Monday, August 13, 2018
Build trust relationship between two forests
Creating trust relationship between two different forests is required in numerous scenarios. There are few steps for this.
First it should be confirmed the connectivity between two domain controllers. Then name resolution must be inplace to resolve domain names. There are number of ways for this.
- Conditional Forwarder
- Secondary Zone
- Stub Zone
The best solution is Stub Zone which is more secure (For more info : https://social.technet.microsoft.com/Forums/windowsserver/en-US/bf6b6f2b-a2da-4e85-970f-778180393fc4/dns-stub-zone?forum=winserverNIS). Follow the steps to configure stub zones in adatum.com and milestone.com domains.
DC in adatum.com
Open DNS manager
Expand the server and Forward Lookup Zones folder
Right click on Forward Lookup Zones folder
Click New Zone and click Next
Click on Stub Zone radio button and click Next
Select To all DNS servers running on domain controllers in this forest: domain.com
And click Next.
Thursday, June 1, 2017
How apt get get in to work behind a proxy server
apt-get is the command in debian based linux systems for package installation, update, upgrade and number of software package related function. But if you are behind a proxy server it will be tough issue to get update your linux system (or install relavant packages). For this you have to edit a config file in /etc/apt/apt.conf
sudo nano /etc/apt/apt.conf
and add these to this file.
Acquire::socks::proxy "socks://<username>:<password>@<proxy>:<port>/";
Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/";
Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";
Save the file and run apt-get again
sudo nano /etc/apt/apt.conf
and add these to this file.
Acquire::socks::proxy "socks://<username>:<password>@<proxy>:<port>/";
Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/";
Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";
Save the file and run apt-get again
Thursday, August 25, 2016
Install and configure sftp server on Ubuntu Server
Install VSFTPD
sudo apt-get install vsftpd
Configuring VSFTPD.
open /etc/vftpd.conf file
Uncomment the following lines ;
write_enable=YES
local_umask=022
chroot_local_user=YES
Add the following line at the end of the file.
allow_writeable_chroot=YES
sudo apt-get install vsftpd
Configuring VSFTPD.
open /etc/vftpd.conf file
Uncomment the following lines ;
write_enable=YES
local_umask=022
chroot_local_user=YES
Add the following line at the end of the file.
allow_writeable_chroot=YES
Friday, August 12, 2016
Install OS through network using microsoft WDS server
PXE boot is the new trend, actually not new it has a very old history. Any way PXE (Pre-Execution Environment) is the way to boot PCs over network. Using this we can install OSs via network which make easier to network administrators, specially IT lab setup guys. Because when we going to install OS/OSs in several hundreds of PCs that's going to be a hard situation if we are using DVDs or USB booting. When we use PXE boot to install OSs we just have to go to the PC and boot it from PXE network boot and the rest of the thing going to be the same as a normal OS installation.
Windows Server had make it easier. Using WDS (Windows Deployment Service) we can select our installation image using installation media and just using few clicks we can install OS in to a PC using PXE. There is a more featured application for windows Server which is System Center gives you some elevation doing system administration, but here we are going to talk about a tool which bundled with System Center.
So here is the steps.
Windows Server had make it easier. Using WDS (Windows Deployment Service) we can select our installation image using installation media and just using few clicks we can install OS in to a PC using PXE. There is a more featured application for windows Server which is System Center gives you some elevation doing system administration, but here we are going to talk about a tool which bundled with System Center.
So here is the steps.
Thursday, July 7, 2016
Active Directory ds Commands for user add,delete and for hack.
Here I'm not going to talk about how to install Domain Service in your server or How to interact with Active Directory Users and Computers application. I'm going to make some simple note how to add users in a domain and how to add that users in to different groups.
add a user in Domain Controller.
command:
dsadd user "cn=firday, cn=users, dc=week, dc=local" -pwd Friday@123 -disabled no
This will add the user "friday" in "users" container on "week" domain. The password is going to be "Friday@123". "-disabled no" option will enable the user account.
Change password of the user.
dsmod user "cn=firday, cn=users, dc=week, dc=local" -pwd abc@123
In this case we are changing the previous user's password to "abc@123"
Add a user to an Admin group.
There may be several admin groups in your domain like itadmin, domain admin, built-in administrators ...
add a user in Domain Controller.
command:
dsadd user "cn=firday, cn=users, dc=week, dc=local" -pwd Friday@123 -disabled no
This will add the user "friday" in "users" container on "week" domain. The password is going to be "Friday@123". "-disabled no" option will enable the user account.
Change password of the user.
dsmod user "cn=firday, cn=users, dc=week, dc=local" -pwd abc@123
In this case we are changing the previous user's password to "abc@123"
Add a user to an Admin group.
There may be several admin groups in your domain like itadmin, domain admin, built-in administrators ...
Subscribe to:
Posts (Atom)