This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | centos 7 setup-rename NIC to eth0 | |
| http://ask.xmodulo.com/change-network-interface-name-centos7.html | |
| - This is achieved by editing /etc/default/grub and adding "net.ifnames=0" to GRUB_CMDLINE_LINUX variable. | |
| - Then run this command to regenerate GRUB configuration with updated kernel parameters. | |
| $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg | |
| - cat /sys/class/net/*/address | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.StringWriter; | |
| import java.security.KeyStore; | |
| import javax.net.ssl.SSLContext; | |
| import org.apache.commons.io.IOUtils; | |
| import org.apache.http.HttpEntity; | 
NewerOlder