Gw Basic Program Commands
Posted in:admin
Useful ifconfig Commands to Configure Network Interface in Linuxifconfig in short interface configuration utility for systemnetwork administration in UnixLinux operating systems to configure, manage and query network interface parameters via command line interface or in a system configuration scripts. The ifconfig command is used for displaying current network configuration information, setting up an ip address, netmask or broadcast address to an network interface, creating an alias for network interface, setting up hardware address and enable or disable network interfaces. Useful ifconfig Commands. This article covers 1. Useful ifconfig Commands with their practical examples, that might be very helpful to you in managing and configuring network interfaces in Linux systems. Gw Basic Program Commands' title='Gw Basic Program Commands' />Update The networking command ifconfig is deprecated and replaced by ip command Learn 1. Examples of IP Command in most Linux distributions. Dont Miss ifconfig vs ip Whats Difference Between Them. Gw Basic Program Commands' title='Gw Basic Program Commands' />View All Network Setting. The ifconfig command with no arguments will display all the active interfaces details. The ifconfig command also used to check the assigned IP address of an server. Link encap Ethernet HWaddr 0. B CD 1. C 1. 8 5. A. inet addr 1. 72. Bcast 1. 72. 1. 6. Mask 2. 55. 2. 55. Scope Link. UP BROADCAST RUNNING MULTICAST MTU 1. Metric 1. RX packets 2. Check Point CLI Reference Card v2. Jens Roesen Useful Secure Knowledge articles sk65385 List of How To Guides for all Check Point products. Gw Basic Program Commands' title='Gw Basic Program Commands' />
TX packets 2. RX bytes 2. 93. 46. Mi. B TX bytes 1. Mi. B. Interrupt 1. Memory f. 7fe. 00. Link encap Local Loopback. Mask 2. 55. 0. 0. Scope Host. UP LOOPBACK RUNNING MTU 1. Metric 1. RX packets 5. TX packets 5. 01. RX bytes 2. 17. 45. Gi. B TX bytes 2. Gi. B. tun. 0 Link encap UNSPEC HWaddr 0. P t P 1. 0. 1. Mask 2. UP POINTOPOINT RUNNING NOARP MULTICAST MTU 1. Metric 1. RX packets 0 errors 0 dropped 0 overruns 0 frame 0. TX packets 0 errors 0 dropped 0 overruns 0 carrier 0. RX bytes 0 0. 0 b TX bytes 0 0. Display Information of All Network Interfaces. Download PCBASIC a GWBASIC emulator for free. A free, crossplatform emulator for GWBASIC, PCjr Tandy BASIC. PCBASIC is a free, crossplatform. Calls one batch program from another. CALL drivepathfilename batchparameters batchparameters Specifies any commandline information required by the. The following ifconfig command with a argument will display information of all active or inactive network interfaces on server. It displays the results for eth. Link encap Ethernet HWaddr 0. B CD 1. C 1. 8 5. A. inet addr 1. 72. Bcast 1. 72. 1. 6. Mask 2. 55. 2. 55. Scope Link. UP BROADCAST RUNNING MULTICAST MTU 1. Metric 1. RX packets 2. TX packets 2. 22. RX bytes 2. 93. 83. Mi. B TX bytes 1. Mi. B. Interrupt 1. Memory f. 7fe. 00. Link encap Local Loopback. Mask 2. 55. 0. 0. Scope Host. UP LOOPBACK RUNNING MTU 1. Metric 1. RX packets 5. TX packets 5. 02. RX bytes 2. 17. 57. Gi. B TX bytes 2. Gi. B. sit. 0 Link encap IPv. IPv. 4. NOARP MTU 1. Metric 1. RX packets 0 errors 0 dropped 0 overruns 0 frame 0. TX packets 0 errors 0 dropped 0 overruns 0 carrier 0. RX bytes 0 0. 0 b TX bytes 0 0. Link encap UNSPEC HWaddr 0. P t P 1. 0. 1. Mask 2. UP POINTOPOINT RUNNING NOARP MULTICAST MTU 1. Metric 1. RX packets 0 errors 0 dropped 0 overruns 0 frame 0. TX packets 0 errors 0 dropped 0 overruns 0 carrier 0. RX bytes 0 0. 0 b TX bytes 0 0. View Network Settings of Specific Interface. Using interface name eth. Link encap Ethernet HWaddr 0. B CD 1. C 1. 8 5. A. inet addr 1. 72. Bcast 1. 72. 1. 6. Mask 2. 55. 2. 55. Scope Link. UP BROADCAST RUNNING MULTICAST MTU 1. Metric 1. RX packets 2. TX packets 2. 22. RX bytes 2. 93. 91. Mi. B TX bytes 1. Mi. B. Interrupt 1. Memory f. 7fe. 00. How to Enable an Network Interface. The up or ifup flag with interface name eth. For example, ifconfig eth. How to Disable an Network Interface. The down or ifdown flag with interface name eth. For example, ifconfig eth. How to Assign a IP Address to Network Interface. To assign an IP address to an specific interface, use the following command with an interface name eth. For example, ifconfig eth. IP address to interface eth. How to Assign a Netmask to Network Interface. Using the ifconfig command with netmask argument and interface name as eth. For example, ifconfig eth. Acdsee 4.0 Powerpack Suite. How to Assign a Broadcast to Network Interface. Using the broadcast argument with an interface name will set the broadcast address for the given interface. For example, ifconfig eth. How to Assign a IP, Netmask and Broadcast to Network Interface. To assign an IP address, Netmask address and Broadcast address all at once using ifconfig command with all arguments as given below. How to Change MTU for an Network Interface. The mtu argument set the maximum transmission unit to an interface. The MTU allows you to set the limit size of packets that are transmitted on an interface. The MTU able to handle maximum number of octets to an interface in one single transaction. For example, ifconfig eth. Not all network interfaces supports MTU settings. How to Enable Promiscuous Mode. What happens in normal mode, when a packet received by a network card, it verifies that the packet belongs to itself. If not, it drops the packet normally, but in the promiscuous mode is used to accept all the packets that flows through the network card. Most of the todays network tools uses the promiscuous mode to capture and analyze the packets that flows through the network interface. To set the promiscuous mode, use the following command. How to Disable Promiscuous Mode. To disable promiscuous mode, use the promisc switch that drops back the network interface in normal mode. How to Add New Alias to Network Interface. The ifconfig utility allows you to configure additional network interfaces using alias feature. To add alias network interface of eth. Please note that alias network address in same sub net mask. For example, if your eth. Next, verify the newly created alias network interface address, by using ifconfig eth. Link encap Ethernet HWaddr 0. C 9. 9 1. 4 6. Bcast 1. Mask 2. 55. 2. 55. UP BROADCAST RUNNING MULTICAST MTU 1. Metric 1. Interrupt 1. How to Remove Alias to Network Interface. If you no longer required an alias network interface or you incorrectly configured it, you can remove it by using the following command. How to Change the MAC address of Network Interface. To change the MAC Media Access Control address of an eth. For example, see below. AA BB CC DD EE FFThese are the most useful commands for configuring network interfaces in Linux, for more information and usage of ifconfig command use the manpages like man ifconfig at the terminal. Check out some other networking utilities below. Other Networking Utilities. Tcmpdump is an command line packet capture and analyzer tool for monitoring network traffic. Netstat is an open source command line network monitoring tool that monitors incoming and outgoing network packets traffic. Wireshark is an open source network protocol analyzer that is used to troubleshoot network related issues. Munin is an web based network and system monitoring application that is used to display results in graphs using rrdtool. Cacti is an complete web based monitoring and graphing application for network monitoring. To get more information and options for any of the above tools, see the manapages by entering man toolname at the command prompt. For example, to get the information for netstat tool, use the command as man netstat.