名詞+のような/のように(例示・比喩)
のような modifies a noun: 'a B like A' or 'B such as A' (東京のような大きい町). のように modifies verbs and adjectives: 歌手のように歌が上手だ (sings well, like a professional). The な/に alternation parallels な-adjective usage. In the example reading, A is an instance of B; in the simile reading, A merely resembles B.
東京のような大きい町に住んでみたいです。
I'd like to try living in a big city like Tokyo.
姉は歌手のように歌が上手です。
My sister sings as well as a professional singer.
今日は春のように暖かいですね。
It's as warm as spring today, isn't it?