Dog Tries to Break Fence

I have a 6ft fence in my backyard and my neighbors have a 4ft fence in theirs. For some reason, my dog (german shepherd) and their dogs (great Pyrenees and pitty mix) HATE each other. It's to the point my dog is trying to break my fence to get to their dogs. I can hear their dogs jumping on their 4ft fence, so I know this is mutual hatred.

My question is HOW can I keep my dog away from the fence or stop him from scratching the fence? He cut himself earlier by scratching at it, that's how much he tries to get through it. I'm at a loss on what to do. He's not like this when we go on walks or when people come to the door. He's ONLY like that with my neighbors dogs.

Is there anyway to keep him from trying to break through the fence? My dog isn't food motivated, so that's out.