protected void displayInterfaces() {

    	NetworkInterface NIC;

    	String str;

    	

		Enumeration keys = NetworkInterfacetable.keys();

    	while(keys.hasMoreElements()){

    		str = (String) keys.nextElement();

    		NIC = (NetworkInterface)NetworkInterfacetable.get(str);

    		System.out.print(NIC.getDetails());    

    		if(this.getClass() != Hub.class){

    			String strIPAddress = NodeProtocolStack.getIPAddress(str);

    			if(strIPAddress == null)

    			{

    				strIPAddress = "Not set";

    			}

				System.out.println("\tIP Address: "+ strIPAddress);	

    		}else 

    			System.out.println();  		    	

    	}

     }