Posts

Showing posts from February, 2014

How to configure http/tftp server on cisco router?

Suppose, you want to transfer files between cisco routers. You can choose either tftp or http/https or scp/rcp or ftp. lets say you want to transfer files on disk0: directory on one cisco router to another cisco router. Here are the ways to configure http/tftp server for both IPV6 & IPV4. Configuring http server on cisco router ========================== R1(config)#ip http server R1(config)#ip http port 8080 R1(config)#ip http path disk0: R1(config)#username cisco privilege 15 password 0 cisco Now, you can transfer files from the above configured router to another router say R2  using following commands. 1. If you want to copy files using ipv4 address then:  R2#copy http://[usr] :[passwd] @[ip address] :8080/ Example:  R2#copy http://cisco:cisco@10.10.10.10:8080/xyz.gz disk0: *2. If you want to copy files using ipv6 address then:  R2#copy http://[usr] :[passwd] @[ipv6 address ]:8080/[filename] [destination path] Example: R2#copy http://ci

How to mount a remote directory in unix?

Suppose you want to mount a remote directory and use it as if directory is present on the same server, here are the steps: A. Execute these steps on the remote server: /etc/init.d/nfs start under /etc/exports add this line :  [Directory to allow access on this server] [Server IP to allow access]     (rw,sync) run exportfs -r B. Execute these steps on the Local server: mount -o nolock :  [Remote server IP] :[Remote directory]    [Mount Directory]

How to configure NTP/SNTP in ubuntu?

NTP/SNTP is a protocol which is used for syncing the time between multiple nodes in the network. Here are the steps to Configure NTP client in Ubuntu: update /etc/ntp.conf with your server. server ntpdate /etc/init.d/ntpd restart Update the firewalls rule to accept NTP traffic: iptables -A OUTPUT -p udp --dport 123 -j ACCEPT iptables -A INPUT -p udp --sport 123 -j ACCEPT Check if the server is picking up right NTP server:  sudo ntpq -np    remote           refid      st t when poll reach   delay   offset  jitter ============================================================================== *81.76.22.20   8.78.8.80      2 u  116  128  377    0.540   -9.006   5.55 Star indicates the server is picking up right server.