#include<SPI.h>#include<Ethernet.h>bytemac[]={0xDE,0xAD,0xBE,0xEF,0xFE,0xED};IPAddressip(10,0,0,177);IPAddressmyDns(192,168,1,1);IPAddressgateway(192,168,1,1);voidsetup(){Ethernet.begin(mac,ip,myDns,gateway);IPAddressnewGateway(192,168,100,1);Ethernet.setGatewayIP(newGateway);// change the gateway IP address
}voidloop(){}